diff options
author | Guillermo Iguaran <guilleiguaran@gmail.com> | 2012-09-01 22:36:27 -0500 |
---|---|---|
committer | Guillermo Iguaran <guilleiguaran@gmail.com> | 2012-09-16 23:58:21 -0500 |
commit | 9bfa13bb06d510b95f9af27bf12abf031f9af0a5 (patch) | |
tree | 59ac0ae191f1f0350d73d477841c6c2bf35cff59 /activerecord | |
parent | 91bcebbdef0e31d38622785a064d023272f712db (diff) | |
download | rails-9bfa13bb06d510b95f9af27bf12abf031f9af0a5.tar.gz rails-9bfa13bb06d510b95f9af27bf12abf031f9af0a5.tar.bz2 rails-9bfa13bb06d510b95f9af27bf12abf031f9af0a5.zip |
attr_accessible and attr_protected raise an exception pointing to use plugin or new protection model
Diffstat (limited to 'activerecord')
-rw-r--r-- | activerecord/lib/active_record/attribute_assignment.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/activerecord/lib/active_record/attribute_assignment.rb b/activerecord/lib/active_record/attribute_assignment.rb index c30443f7a8..f11ca941c4 100644 --- a/activerecord/lib/active_record/attribute_assignment.rb +++ b/activerecord/lib/active_record/attribute_assignment.rb @@ -1,6 +1,8 @@ module ActiveRecord module AttributeAssignment + extend ActiveSupport::Concern + include ActiveModel::DeprecatedMassAssignmentSecurity include ActiveModel::ForbiddenAttributesProtection # Allows you to set all the attributes at once by passing in a hash with keys |