Merge pull request #18368 from kuldeepaggarwal/fix-attribute-scope

fix `attribute` method scoping(i.e. private)
This commit is contained in:
Carlos Antonio da Silva 2015-01-06 17:07:49 -02:00
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