Strip attributes

Strip attributes

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.

Rubygem strip_attributes

Total Downloads
206302
Releases
18
Current Version
1.7.0
Released
2015-02-11 00:00:00 UTC
First Release
2011-08-14 00:00:00 UTC
Depending Gems
1

Github rmm5t/strip_attributes

Watchers
153
Forks
30
Development activity
Less active
Last commit
2015-05-29 02:43:30 UTC

Comments

Josh wrote 2011-10-28 20:46:11 UTC:

StripAttributes is available as a gem:

https://rubygems.org/gems/strip_attributes

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.