aboutsummaryrefslogtreecommitdiffstats
path: root/activemodel/test/models/account.rb
diff options
context:
space:
mode:
authorGuillermo Iguaran <guilleiguaran@gmail.com>2012-07-17 00:59:31 -0500
committerGuillermo Iguaran <guilleiguaran@gmail.com>2012-09-16 23:58:19 -0500
commitf8c9a4d3e88181cee644f91e1342bfe896ca64c6 (patch)
tree104ff8b5a28d37d4137b4e7ee783085825a823ba /activemodel/test/models/account.rb
parenta8f6d5c6450a7fe058348a7f10a908352bb6c7fc (diff)
downloadrails-f8c9a4d3e88181cee644f91e1342bfe896ca64c6.tar.gz
rails-f8c9a4d3e88181cee644f91e1342bfe896ca64c6.tar.bz2
rails-f8c9a4d3e88181cee644f91e1342bfe896ca64c6.zip
Remove MassAssignmentSecurity from ActiveModel
This will be moved out to protected_attributes gem
Diffstat (limited to 'activemodel/test/models/account.rb')
-rw-r--r--activemodel/test/models/account.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/activemodel/test/models/account.rb b/activemodel/test/models/account.rb
new file mode 100644
index 0000000000..eed668d38f
--- /dev/null
+++ b/activemodel/test/models/account.rb
@@ -0,0 +1,5 @@
+class Account
+ include ActiveModel::ForbiddenAttributesProtection
+
+ public :sanitize_for_mass_assignment
+end