Store attributes as they are instead of converting them into Strings

This commit is contained in:
Santiago Pastorino
2013-09-15 22:07:10 -03:00
parent 10e882a14f
commit 75e9a2599d
11 changed files with 74 additions and 74 deletions

View File

@@ -39,7 +39,7 @@ module ActiveModel
end
def attributes(*attrs)
@_attributes.concat attrs.map(&:to_s)
@_attributes.concat attrs
attrs.each do |attr|
unless method_defined?(attr)