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
rmm5t
Maintainer
650 stars
Go to website ↗View on GitHub
strip_attributes repository preview
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_attributes
Languages
Ruby100%
Last updated3 months ago
LicenseMIT
More Ruby on Rails projects
R
Made with Ruby on Rails
RSSLLMmadewithwhat

Ask MadeWithWhat

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