lib/contentful/management/role.rb in contentful-management-2.8.0 vs lib/contentful/management/role.rb in contentful-management-2.8.1

- old
+ new

@@ -46,10 +46,17 @@ end protected def query_attributes(attributes) - attributes.each_with_object({}) { |(k, v), result| result[k.to_sym] = v } + { + name: name, + description: description, + permissions: permissions, + policies: policies + }.merge( + attributes.each_with_object({}) { |(k, v), result| result[k.to_sym] = v } + ) end # @private def refresh_find self.class.find(client, space.id, id)