mirror of
https://github.com/ditkrg/active_model_serializers.git
synced 2026-01-25 15:23:06 +00:00
ActiveModelSerializers::Model successor initialized with string keys fix (#1881)
This commit is contained in:
committed by
L. Preston Sego III
parent
5f3bdcc87c
commit
1896e5a525
@@ -9,7 +9,7 @@ module ActiveModelSerializers
|
||||
attr_reader :attributes, :errors
|
||||
|
||||
def initialize(attributes = {})
|
||||
@attributes = attributes
|
||||
@attributes = attributes && attributes.symbolize_keys
|
||||
@errors = ActiveModel::Errors.new(self)
|
||||
super
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user