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:
parent
cc274c3f18
commit
d4c5406279
1 changed files with 1 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue