From 1882b2c31faf2732da5692035943b93fc9130575 Mon Sep 17 00:00:00 2001 From: Doug Date: Wed, 1 Jul 2020 23:52:03 -0700 Subject: [PATCH] apply the attrs to the @attributes variable --- lib/jsonapi/consumer/helpers/dynamic_attributes.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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|