Skip to content

Commit

Permalink
Merge pull request #18362 from georgemillo/attribute
Browse files Browse the repository at this point in the history
replacing 'attribute' method with an alias
  • Loading branch information
rafaelfranca committed Jan 6, 2015
2 parents 8554977 + ff286eb commit 52f6412
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions activerecord/lib/active_record/attribute_methods/read.rb
Original file line number Diff line number Diff line change
Expand Up @@ -75,9 +75,8 @@ def _read_attribute(attr_name) # :nodoc:

private

def attribute(attribute_name)
_read_attribute(attribute_name)
end
alias :attribute :_read_attribute

end
end
end

0 comments on commit 52f6412

Please sign in to comment.