lib/wcc/contentful/model_singleton_methods.rb in wcc-contentful-1.1.2 vs lib/wcc/contentful/model_singleton_methods.rb in wcc-contentful-1.2.0
- old
+ new
@@ -14,10 +14,10 @@
options ||= {}
store = options[:preview] ? services.preview_store : services.store
raw =
_instrumentation.instrument 'find.model.contentful.wcc',
content_type: content_type, id: id, options: options do
- store.find(id, { hint: type }.merge!(options.except(:preview)))
+ store.find(id, **{ hint: type }.merge!(options.except(:preview)))
end
new(raw, options) if raw.present?
end
# Finds all instances of this content type, optionally limiting to those matching