StripAttributes automatically strips all ActiveRecord model attributes of leading and trailing whitespace before validation. If the attribute is blank, it strips the value to nil.
gem install strip_attributesNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Automatically strip whitespace from ActiveRecord attributes
Use only within ActiveRecord::Base subclasses
Set allow_blank: false to keep empty strings
No dependency data recorded yet.