From 9bfa13bb06d510b95f9af27bf12abf031f9af0a5 Mon Sep 17 00:00:00 2001 From: Guillermo Iguaran Date: Sat, 1 Sep 2012 22:36:27 -0500 Subject: attr_accessible and attr_protected raise an exception pointing to use plugin or new protection model --- activerecord/lib/active_record/attribute_assignment.rb | 2 ++ 1 file changed, 2 insertions(+) (limited to 'activerecord/lib/active_record') 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 -- cgit v1.2.3