From d4c5406279551919920ddf3fa586a8a30357df25 Mon Sep 17 00:00:00 2001 From: Kuldeep Aggarwal Date: Tue, 6 Jan 2015 21:46:35 +0530 Subject: fix `attribute` method scoping(i.e. private) ref #52f641264b1325a4c2bdce7971b14524bd4905f1 --- activerecord/lib/active_record/attribute_methods/read.rb | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'activerecord/lib/active_record') diff --git a/activerecord/lib/active_record/attribute_methods/read.rb b/activerecord/lib/active_record/attribute_methods/read.rb index 17f287c1b7..24e30b6608 100644 --- a/activerecord/lib/active_record/attribute_methods/read.rb +++ b/activerecord/lib/active_record/attribute_methods/read.rb @@ -72,10 +72,8 @@ module ActiveRecord def _read_attribute(attr_name) # :nodoc: @attributes.fetch_value(attr_name.to_s) { |n| yield n if block_given? } end - - private - alias :attribute :_read_attribute + private :attribute end end -- cgit v1.2.3