Back to gallery
DevTools
strip_attributes
An ActiveModel extension that automatically strips all attributes of leading and trailing whitespace before validation. If the attribute is blank, it strips the value to nil.
rmm5t
Maintainer
650 stars
About this project
An ActiveModel extension that automatically strips all attributes of leading and trailing whitespace before validation. If the attribute is blank, it strips the value to nil. Maintained by rmm5t on GitHub, where it has earned 650 stars from the community.
It's actively developed around activemodel, activerecord, rails, and is a solid reference for anyone building with these tools.
Tags
Install
npm install strip_attributesMore Ruby on Rails projects