No commit activity in last 3 years
No release in over 3 years
ActiveRecord Extension to strip whitespace from attributes before saving values
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

>= 0
>= 2.5.0
~> 1.3.2

Runtime

 Project Readme

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.