simple utility to strip whitespace from model's string attributes
Ruby
Switch branches/tags
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
lib
spec
.document
.gitignore
.gitx.yml
.rspec
.ruby-version
.travis.yml
Gemfile
LICENSE
README.md
Rakefile
acts_as_stripped.gemspec

README.md

acts_as_stripped

Simple utility to strip whitespace from string model attributes.

Installation

Bundler configuration:

gem 'acts_as_stripped'

Usage

# strip whitespace from specified string attributes
class Post < ActiveRecord::Base
  acts_as_stripped :title, :summary
end

Copyright

Copyright (c) 2009 Ryan Sonnek. See LICENSE for details.