diff options
author | Łukasz Strzałkowski <lukasz.strzalkowski@gmail.com> | 2013-06-27 20:01:50 +0200 |
---|---|---|
committer | Łukasz Strzałkowski <lukasz.strzalkowski@gmail.com> | 2013-06-27 20:38:30 +0200 |
commit | 468939297db91f8e595a93c94a16e23b26eee61a (patch) | |
tree | a9b5bd13c3548207a4db803bed1d9388e9591e5f /activemodel/test | |
parent | 90f00142e6ff6a674f89c51a6784309b24b246bf (diff) | |
download | rails-468939297db91f8e595a93c94a16e23b26eee61a.tar.gz rails-468939297db91f8e595a93c94a16e23b26eee61a.tar.bz2 rails-468939297db91f8e595a93c94a16e23b26eee61a.zip |
Remove deprecated attr_protected/accessible
Rails 4.0 has removed attr_protected and attr_accessible feature in favor of Strong Parameters.
Diffstat (limited to 'activemodel/test')
-rw-r--r-- | activemodel/test/cases/deprecated_mass_assignment_security_test.rb | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/activemodel/test/cases/deprecated_mass_assignment_security_test.rb b/activemodel/test/cases/deprecated_mass_assignment_security_test.rb deleted file mode 100644 index c1fe8822cd..0000000000 --- a/activemodel/test/cases/deprecated_mass_assignment_security_test.rb +++ /dev/null @@ -1,16 +0,0 @@ -require 'cases/helper' -require 'models/project' - -class DeprecatedMassAssignmentSecurityTest < ActiveModel::TestCase - def test_attr_accessible_raise_error - assert_raise RuntimeError, /protected_attributes/ do - Project.attr_accessible :username - end - end - - def test_attr_protected_raise_error - assert_raise RuntimeError, /protected_attributes/ do - Project.attr_protected :username - end - end -end |