diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2012-11-09 10:31:23 +0900 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2012-11-09 10:31:23 +0900 |
commit | 72f5085404965f4762ecc67839bb5c93db73c8aa (patch) | |
tree | d5408a0b700c3bc91254052ddc1a5a22acc24280 /activemodel/lib/active_model | |
parent | fd16cb3f596bad1bf0ecab9916c009bd7957e401 (diff) | |
download | rails-72f5085404965f4762ecc67839bb5c93db73c8aa.tar.gz rails-72f5085404965f4762ecc67839bb5c93db73c8aa.tar.bz2 rails-72f5085404965f4762ecc67839bb5c93db73c8aa.zip |
rm dead code
Diffstat (limited to 'activemodel/lib/active_model')
-rw-r--r-- | activemodel/lib/active_model/forbidden_attributes_protection.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activemodel/lib/active_model/forbidden_attributes_protection.rb b/activemodel/lib/active_model/forbidden_attributes_protection.rb index 4c05b19cba..7468f95548 100644 --- a/activemodel/lib/active_model/forbidden_attributes_protection.rb +++ b/activemodel/lib/active_model/forbidden_attributes_protection.rb @@ -16,7 +16,7 @@ module ActiveModel module ForbiddenAttributesProtection # :nodoc: protected - def sanitize_for_mass_assignment(attributes, options = {}) + def sanitize_for_mass_assignment(attributes) if attributes.respond_to?(:permitted?) && !attributes.permitted? raise ActiveModel::ForbiddenAttributesError else |