diff --git a/lib/dynamoid/undumping.rb b/lib/dynamoid/undumping.rb index 76e7a114..1ba0f072 100644 --- a/lib/dynamoid/undumping.rb +++ b/lib/dynamoid/undumping.rb @@ -256,7 +256,9 @@ def process(value) # String # Array # Hash - YAML.safe_load(value, permitted_classes: [Symbol, Set, Date, Time, DateTime]) + YAML.safe_load(value, permitted_classes: [ + Symbol, Set, Date, Time, DateTime, ActiveSupport::HashWithIndifferentAccess + ]) else YAML.load(value) end