Permalink
Browse files

Fix typo in code

  • Loading branch information...
1 parent 00df9ef commit bcad94ddb925d9f1de5273b4b6c6bf1bfc217c86 @oscardelben committed Apr 13, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 2012/04/rails-internals-mass-assignment-security.md
@@ -313,7 +313,7 @@ Here's some examples from the rails documentation (I've added the role option):
```
# user = User.new
-# user.assign_attributes({ :name => 'Josh', :is_admin => true }, :as => :admin :without_protection => true)
+# user.assign_attributes({ :name => 'Josh', :is_admin => true }, :as => :admin, :without_protection => true)
# user.name # => "Josh"
# user.is_admin? # => true
```

0 comments on commit bcad94d

Please sign in to comment.