RubyGems.org

do_not_want

0.0.1

Several methods in ActiveRecord skip validations, callbacks, or both. In my extremely humble but also extremely correct opinion, it's too easy to accidentally use these. Do Not Want kills those methods dead so you won't cut yourself on them: >> User.new.update_attribute(:foo, 5) DoNotWant::NotSafe: User#update_attribute isn't safe because it skips validation

installgem install do_not_want
Authors

Gary Bernhardt

1,594 total downloads 1,594 for this version
Owners

0f3aad429c4fe35ea2bcffa654995a5e

Gemfile
gem 'do_not_want', '~> 0.0.1'
Versions
  1. 0.0.1 August 20, 2011 (6 KB)
Development Dependencies
  1. hoe ~> 2.12
  2. rspec >= 2.1.0