auto_strip_attributes

auto_strip_attributes

AutoStripAttributes helps to remove unnecessary whitespaces from ActiveRecord or ActiveModel attributes. It's good for removing accidental spaces from user inputs. It works by adding a before_validation hook to the record. It has option to set empty strings to nil or to remove extra spaces inside the string.

Rubygem auto_strip_attributes

Total Downloads
41696
Releases
8
Current Version
2.0.4
Released
2013-10-04 00:00:00 UTC
First Release
2011-08-26 00:00:00 UTC
Depends on following gems
Depending Gems
2

Github holli/auto_strip_attributes

Watchers
50
Forks
9
Development activity
Inactive
Last commit
2014-02-11 18:30:18 UTC
First commit
Top contributors
Contributors
3
Issues
Wiki pages

Resources

There are no resources yet, be the first to submit one!

Comments

There are no comments yet, be the first to write one!

Post a comment

Markdown supported
or
×

In order to continue, you must be signed in using your Github account.

If you're signing in using this account for the first time Github will ask for your permission to give access to your public user data to the Ruby Toolbox.

Although the Github Authorization page does not mention it, the request includes read-only access to your verified email address (user:email OAuth scope). This is neccessary so there's a way to notify you about comments, information about your accepted project edits and the like. You can review your notification settings on your account page once you're signed in.