Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
simple utility to strip whitespace from model's string attributes
Ruby
tree: 23bab69376

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
lib
test
.document
.gitignore
LICENSE
README.rdoc
Rakefile
VERSION.yml
acts_as_stripped.gemspec

README.rdoc

acts_as_stripped

Simple utility to strip whitespace from string attributes.

Installation

Command line installation

sudo gem install wireframe-acts_as_stripped

Rails environment.rb configuration

config.gem 'wireframe-acts_as_stripped', :source => 'http://gems.github.com', :lib => 'acts_as_stripped'

Usage

# strip whitespace from *all* string attributes
class User < ActiveRecord::Base
  acts_as_stripped
end

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

Copyright

Copyright © 2009 Ryan Sonnek. See LICENSE for details.

Something went wrong with that request. Please try again.