aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrancesco Rodriguez <lrodriguezsanc@gmail.com>2012-12-10 19:08:09 -0500
committerFrancesco Rodriguez <lrodriguezsanc@gmail.com>2012-12-10 19:08:09 -0500
commitc04dc674cceef76408eb7f22e30c7ffc36c9262d (patch)
tree4b42df9512ab315238cff67816b06a1746cec87b
parent1e83730067709d8c07fd25669088e8e9efd2355b (diff)
downloadrails-c04dc674cceef76408eb7f22e30c7ffc36c9262d.tar.gz
rails-c04dc674cceef76408eb7f22e30c7ffc36c9262d.tar.bz2
rails-c04dc674cceef76408eb7f22e30c7ffc36c9262d.zip
remove attr_protected reference from AS Core Extensions guide [ci skip]
-rw-r--r--guides/source/active_support_core_extensions.md7
1 files changed, 0 insertions, 7 deletions
diff --git a/guides/source/active_support_core_extensions.md b/guides/source/active_support_core_extensions.md
index 1d79ee2565..61968b1eb9 100644
--- a/guides/source/active_support_core_extensions.md
+++ b/guides/source/active_support_core_extensions.md
@@ -2678,13 +2678,6 @@ If the receiver responds to `convert_key`, the method is called on each of the a
{a: 1}.with_indifferent_access.except("a") # => {}
```
-The method `except` may come in handy for example when you want to protect some parameter that can't be globally protected with `attr_protected`:
-
-```ruby
-params[:account] = params[:account].except(:plan_id) unless admin?
-@account.update_attributes(params[:account])
-```
-
There's also the bang variant `except!` that removes keys in the very receiver.
NOTE: Defined in `active_support/core_ext/hash/except.rb`.