lib/wcc/contentful/model/site_config.rb in wcc-contentful-app-1.2.0 vs lib/wcc/contentful/model/site_config.rb in wcc-contentful-app-1.2.1
- old
+ new
@@ -1,7 +1,7 @@
# frozen_string_literal: true
class WCC::Contentful::Model::SiteConfig < WCC::Contentful::Model
- def self.instance(preview = false)
+ def self.instance(preview = false) # rubocop:disable Style/OptionalBooleanParameter
find_by(foreign_key: 'default', options: { include: 4, preview: preview })
end
end