Class: WCC::Contentful::Model::SiteConfig

Inherits:
WCC::Contentful::Model
  • Object
show all
Defined in:
lib/wcc/contentful/model/site_config.rb

Direct Known Subclasses

SiteConfig

Class Method Summary collapse

Class Method Details

.instance(preview = false, locale: nil) ⇒ Object

rubocop:disable Style/OptionalBooleanParameter



4
5
6
# File 'lib/wcc/contentful/model/site_config.rb', line 4

def self.instance(preview = false, locale: nil) # rubocop:disable Style/OptionalBooleanParameter
  find_by(foreign_key: 'default', options: { include: 4, preview: preview, locale: locale })
end