diff options
author | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2015-01-06 11:16:49 -0300 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2015-01-06 11:16:49 -0300 |
commit | 52f641264b1325a4c2bdce7971b14524bd4905f1 (patch) | |
tree | f0717366d6f526fb5b972fda742645fe0bf2daaf /activerecord/lib/active_record | |
parent | 8554977c4227d8ec834498742a03aed9ca4e9c45 (diff) | |
parent | ff286eb3e3c063c30f236322e1f8b6dd3c7cf376 (diff) | |
download | rails-52f641264b1325a4c2bdce7971b14524bd4905f1.tar.gz rails-52f641264b1325a4c2bdce7971b14524bd4905f1.tar.bz2 rails-52f641264b1325a4c2bdce7971b14524bd4905f1.zip |
Merge pull request #18362 from georgemillo/attribute
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 |