aboutsummaryrefslogtreecommitdiffstats
path: root/activemodel/test/models
diff options
context:
space:
mode:
authorGuillermo Iguaran <guilleiguaran@gmail.com>2012-07-13 03:51:13 -0500
committerGuillermo Iguaran <guilleiguaran@gmail.com>2012-09-16 23:58:19 -0500
commita8f6d5c6450a7fe058348a7f10a908352bb6c7fc (patch)
tree245439153ec40c6840ece2b13ecc41572fe56d33 /activemodel/test/models
parent885005461b3cc0d073ec08495dc3bf06d0bebf2a (diff)
downloadrails-a8f6d5c6450a7fe058348a7f10a908352bb6c7fc.tar.gz
rails-a8f6d5c6450a7fe058348a7f10a908352bb6c7fc.tar.bz2
rails-a8f6d5c6450a7fe058348a7f10a908352bb6c7fc.zip
Integrate ActiveModel::ForbiddenAttributesProtection from StrongParameters gem
Diffstat (limited to 'activemodel/test/models')
-rw-r--r--activemodel/test/models/mass_assignment_specific.rb7
1 files changed, 7 insertions, 0 deletions
diff --git a/activemodel/test/models/mass_assignment_specific.rb b/activemodel/test/models/mass_assignment_specific.rb
index 1d123fa58c..1bf828ad43 100644
--- a/activemodel/test/models/mass_assignment_specific.rb
+++ b/activemodel/test/models/mass_assignment_specific.rb
@@ -20,6 +20,13 @@ class Person
public :sanitize_for_mass_assignment
end
+class SpecialPerson
+ include ActiveModel::MassAssignmentSecurity
+ include ActiveModel::ForbiddenAttributesProtection
+
+ public :sanitize_for_mass_assignment
+end
+
class Account
include ActiveModel::MassAssignmentSecurity
attr_accessible :name, :email, :as => [:default, :admin]