Merge pull request #18368 from kuldeepaggarwal/fix-attribute-scope
fix `attribute` method scoping(i.e. private)
This commit is contained in:
commit
f542ffeffc
@ -72,10 +72,8 @@ def read_attribute(attr_name, &block)
|
||||
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 New Issue
Block a user