aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord
diff options
context:
space:
mode:
authorGeorge Millo <georgejulianmillo@gmail.com>2015-01-06 12:20:58 +0000
committerGeorge Millo <georgejulianmillo@gmail.com>2015-01-06 12:20:58 +0000
commitff286eb3e3c063c30f236322e1f8b6dd3c7cf376 (patch)
tree6781b1cac047f21e8f0390d886121399b872cdbe /activerecord
parentde4f40826e3b979735e4f3287725f1a7a3820818 (diff)
downloadrails-ff286eb3e3c063c30f236322e1f8b6dd3c7cf376.tar.gz
rails-ff286eb3e3c063c30f236322e1f8b6dd3c7cf376.tar.bz2
rails-ff286eb3e3c063c30f236322e1f8b6dd3c7cf376.zip
replacing 'attribute' method with an alias
Diffstat (limited to 'activerecord')
-rw-r--r--activerecord/lib/active_record/attribute_methods/read.rb5
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