aboutsummaryrefslogtreecommitdiffstats
path: root/activemodel
diff options
context:
space:
mode:
authorrobertomiranda <rjmaltamar@gmail.com>2013-05-19 22:37:46 -0500
committerrobertomiranda <rjmaltamar@gmail.com>2015-01-09 17:53:54 -0500
commite0213f45eacd587fb7c0630dc9eb6288b4337e46 (patch)
treec18fa630bcb6714cc7485b07495d1a39ac49d5ad /activemodel
parent82dd93bd5eb6613c6fd8ba0725b30c273aba7008 (diff)
downloadrails-e0213f45eacd587fb7c0630dc9eb6288b4337e46.tar.gz
rails-e0213f45eacd587fb7c0630dc9eb6288b4337e46.tar.bz2
rails-e0213f45eacd587fb7c0630dc9eb6288b4337e46.zip
Remove attributes_protected_by_default reference, since MassAssignmentSecurity was removed from ActiveModel f8c9a4d3e88181
Diffstat (limited to 'activemodel')
-rw-r--r--activemodel/lib/active_model/secure_password.rb7
1 files changed, 0 insertions, 7 deletions
diff --git a/activemodel/lib/active_model/secure_password.rb b/activemodel/lib/active_model/secure_password.rb
index 96e88f1b6c..871031ece4 100644
--- a/activemodel/lib/active_model/secure_password.rb
+++ b/activemodel/lib/active_model/secure_password.rb
@@ -77,13 +77,6 @@ module ActiveModel
validates_length_of :password, maximum: ActiveModel::SecurePassword::MAX_PASSWORD_LENGTH_ALLOWED
validates_confirmation_of :password, allow_blank: true
end
-
- # This code is necessary as long as the protected_attributes gem is supported.
- if respond_to?(:attributes_protected_by_default)
- def self.attributes_protected_by_default #:nodoc:
- super + ['password_digest']
- end
- end
end
end