lib/contentful/management/locale.rb in contentful-management-3.8.0 vs lib/contentful/management/locale.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
@@ -36,10 +38,10 @@
name: name,
code: code,
optional: optional,
fallbackCode: fallback_code
}.merge(
- attributes.each_with_object({}) { |(k, v), result| result[k.to_sym] = v }
+ attributes.transform_keys(&:to_sym)
)
end
end
end
end