Skip to content

seamusabshere/validates_decency_of

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ValidatesDecencyOf
=================

Uses George Carlin's list of "seven dirty words" to "check for decency" (ahem)
http://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 (c) 2010 Seamus Abshere, released under the MIT license.

About

Rails plugin that uses George Carlin's list of seven dirty words (aka swear words, aka cuss words, aka bad words) to check for "decency" on ActiveRecord model attributes.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages