diff options
Diffstat (limited to 'activemodel/lib/active_model/validations.rb')
-rw-r--r-- | activemodel/lib/active_model/validations.rb | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/activemodel/lib/active_model/validations.rb b/activemodel/lib/active_model/validations.rb index 573c914e63..276472ea46 100644 --- a/activemodel/lib/active_model/validations.rb +++ b/activemodel/lib/active_model/validations.rb @@ -121,9 +121,7 @@ module ActiveModel # end # end # - def read_attribute_for_validation(key) - send(key) - end + alias :read_attribute_for_validation :send end end |