diff --git a/lib/jsonapi/consumer/helpers/dynamic_attributes.rb b/lib/jsonapi/consumer/helpers/dynamic_attributes.rb index cd8e147..91e8b13 100755 --- a/lib/jsonapi/consumer/helpers/dynamic_attributes.rb +++ b/lib/jsonapi/consumer/helpers/dynamic_attributes.rb @@ -7,7 +7,7 @@ def attributes end def attributes=(attrs = {}) - @attributes ||= ActiveSupport::HashWithIndifferentAccess.new + @attributes ||= ActiveSupport::HashWithIndifferentAccess.new(attrs) return @attributes unless attrs.present? attrs.each do |key, value|