Skip to content

Commit

Permalink
fix: entity keys should be either a string or a symbol
Browse files Browse the repository at this point in the history
  • Loading branch information
did committed Dec 1, 2023
1 parent 0b080f7 commit 67c0de7
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions lib/locomotive/steam/models/mapper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,10 @@ def to_entity(attributes)
end

def deserialize(attributes)
build_localized_attributes(attributes)
build_associations(attributes)
attributes
enhanced_attributes = attributes.with_indifferent_access
build_localized_attributes(enhanced_attributes)
build_associations(enhanced_attributes)
enhanced_attributes
end

def serialize(entity)
Expand Down

0 comments on commit 67c0de7

Please sign in to comment.