1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

fix attribute method scoping(i.e. private)

ref #52f641264b1325a4c2bdce7971b14524bd4905f1
This commit is contained in:
Kuldeep Aggarwal 2015-01-06 21:46:35 +05:30
parent cc274c3f18
commit d4c5406279

View file

@ -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