Skip to content

Latest commit

 

History

History
19 lines (12 loc) · 357 Bytes

README.rdoc

File metadata and controls

19 lines (12 loc) · 357 Bytes

acts_as_stripped

Simple utility to strip whitespace from string 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 © 2009 Ryan Sonnek. See LICENSE for details.