From ff286eb3e3c063c30f236322e1f8b6dd3c7cf376 Mon Sep 17 00:00:00 2001 From: George Millo Date: Tue, 6 Jan 2015 12:20:58 +0000 Subject: replacing 'attribute' method with an alias --- activerecord/lib/active_record/attribute_methods/read.rb | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'activerecord') 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 -- cgit v1.2.3