lib/contentful/management/editor_interface.rb in contentful-management-3.8.0 vs lib/contentful/management/editor_interface.rb in contentful-management-3.9.0
- old
+ new
@@ -1,5 +1,7 @@
+# frozen_string_literal: true
+
require_relative 'resource'
require_relative 'resource/environment_aware'
module Contentful
module Management
@@ -94,10 +96,10 @@
def query_attributes(attributes)
{
controls: controls,
sidebar: sidebar
}.merge(
- attributes.each_with_object({}) { |(k, v), result| result[k.to_sym] = v }
+ attributes.transform_keys(&:to_sym)
)
end
end
end
end