lib/wcc/contentful/model/site_config.rb in wcc-contentful-app-1.3.2 vs lib/wcc/contentful/model/site_config.rb in wcc-contentful-app-1.4.0.rc1

- old
+ new

@@ -1,7 +1,7 @@ # frozen_string_literal: true class WCC::Contentful::Model::SiteConfig < WCC::Contentful::Model - def self.instance(preview = false) # rubocop:disable Style/OptionalBooleanParameter - find_by(foreign_key: 'default', options: { include: 4, preview: preview }) + def self.instance(preview = false, locale: nil) # rubocop:disable Style/OptionalBooleanParameter + find_by(foreign_key: 'default', options: { include: 4, preview: preview, locale: locale }) end end