ValidatesDecencyOf
Uses George Carlin’s list of “seven dirty words” to “check for decency” (ahem) en.wikipedia.org/wiki/Seven_dirty_words
It gives you a new ActiveRecord validation, validates_decency_of.
Installation
You should be able to run this as a plugin or as a gem.
For environment.rb:
config.gem ‘validates_decency_of’
Then be sure to:
rake gems:install
Example
Using it in ActiveRecord…
class Message < ActiveRecord::Base
validates_decency_of :title, :description
end
Copyright © 2010 Seamus Abshere, released under the MIT license.