mirror of
https://github.com/ditkrg/active_model_serializers.git
synced 2026-01-25 07:16:49 +00:00
Store attributes as they are instead of converting them into Strings
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user