diff options
author | George Millo <georgejulianmillo@gmail.com> | 2015-01-06 12:20:58 +0000 |
---|---|---|
committer | George Millo <georgejulianmillo@gmail.com> | 2015-01-06 12:20:58 +0000 |
commit | ff286eb3e3c063c30f236322e1f8b6dd3c7cf376 (patch) | |
tree | 6781b1cac047f21e8f0390d886121399b872cdbe /activerecord/lib/active_record | |
parent | de4f40826e3b979735e4f3287725f1a7a3820818 (diff) | |
download | rails-ff286eb3e3c063c30f236322e1f8b6dd3c7cf376.tar.gz rails-ff286eb3e3c063c30f236322e1f8b6dd3c7cf376.tar.bz2 rails-ff286eb3e3c063c30f236322e1f8b6dd3c7cf376.zip |
replacing 'attribute' method with an alias
Diffstat (limited to 'activerecord/lib/active_record')
-rw-r--r-- | activerecord/lib/active_record/attribute_methods/read.rb | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/activerecord/lib/active_record/attribute_methods/read.rb b/activerecord/lib/active_record/attribute_methods/read.rb index 4b72fe7d7e..17f287c1b7 100644 --- a/activerecord/lib/active_record/attribute_methods/read.rb +++ b/activerecord/lib/active_record/attribute_methods/read.rb @@ -75,9 +75,8 @@ module ActiveRecord private - def attribute(attribute_name) - _read_attribute(attribute_name) - end + alias :attribute :_read_attribute + end end end |