-
Notifications
You must be signed in to change notification settings - Fork 0
model validation, if someone enter a bad word to the validated field then the error message will be displayed
License
kayinrage/discriminating_words
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
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 [email protected]: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 0
No packages published