Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

add example to readme

  • Loading branch information...
commit a9df697e1b78035b840bdd795ce3c7391fdff33a 1 parent 0aefd69
@garybernhardt authored
Showing with 3 additions and 4 deletions.
  1. +3 −4 README.md
View
7 README.md
@@ -6,11 +6,10 @@
Several methods in ActiveRecord skip validations, callbacks, or both. In my extremely humble but also extremely correct opinion, this is a bad idea.
-Do Not Want kills those methods dead so you won't cut yourself on them.
+Do Not Want kills those methods dead so you won't cut yourself on them:
-To install:
-
- gem install do_not_want
+ >> User.new.update_attribute(:foo, 5)
+ DoNotWant::NotSafe: User#update_attribute isn't safe because it skips validation
## Why Do It Do It
Please sign in to comment.
Something went wrong with that request. Please try again.