Skip to content

kayinrage/discriminating_words

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

============== =====
DISCRIMINATING WORDS
============== =====

This plugin adds active record validation that you can use to prevent user from input assulting word into field in your database

Installation:
=============
ruby script/plugin install git@github.com:kayinrage/discriminating_words.git

Examples:
=========
class Message < ActiveRecord::Base
  validates_discriminating_words_of :subject, :body
end

if you use :with option then you can specify your own set of discriminated words

class Message < ActiveRecord::Base
  validates_discriminating_words_of :subject, :body, :with => "cholercia, ojejku, ladacznica, skurczybyk"
end



Copyright (c) 2010 Irenuesz Skrobis, released under the MIT license

About

model validation, if someone enter a bad word to the validated field then the error message will be displayed

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages