validates_decency_of gem
Gem details
Documentation
Install the Gem:
gem install validates_decency_of
Installation
============
You should be able to run this as a plugin or as a gem.
For environment.rb:
config.gem 'seamusabshere-validates_decency_of', :lib => 'validates_decency_of', :source => 'http://gems.github.com'
Then be sure to:
rake gems:install
Example
=======
Using it from String...
>> "hello world".is_decent? => true >> "-s-h-i-t-t-y-".is_decent? => false >> "the town of Scunthorpe".is_decent? => false
(sorry to the residents of http://en.wikipedia.org/wiki/Scunthorpe)
Using it in ActiveRecord...
class Message < ActiveRecord::Base validates_decency_of :title, :description end
Copyright (c) 2009 Seamus Abshere, released under the MIT license.
Edit Gem | Back in time (1 older version) | Last edited by: seamusabshere, about 1 year ago


