Back to gallery
DevTools

strip_attributes by rmm5t

Go to website ↗View on GitHub
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.
rmm5t
rmm5t
Maintainer
650 stars
60 forks
5 watchers

Install

gem install strip_attributes

Languages

Ruby100%
Last updated6mo ago
LicenseMIT

More Ruby on Rails projects

Ask MadeWithWhat

AI answers may contain mistakes — please double-check important details.