Sha256: 0801086d1c320bc57f752f0e020ff103cbe3461b35059f3fa03b14a103e96dde

Contents?: true

Size: 590 Bytes

Versions: 10

Compression:

Stored size: 590 Bytes

Contents

WCC::Contentful.configure do |config|
  # Required
  config.access_token = # Contentful CDN access token
  config.space = # Contentful Space ID

  # Optional
  config.management_token = # Contentful API management token
  config.default_locale = # Set default locale, if left blank this is 'en-US'
  config.content_delivery = # :direct, :eager_sync, or :lazy_sync
end

# Download content types, build models, and sync content
WCC::Contentful.init!

# Validate that models conform to a defined specification
WCC::Contentful.validate_models! unless defined?(Rails) && Rails.env.development?

Version data entries

10 entries across 10 versions & 2 rubygems

Version Path
wcc-contentful-app-0.4.0.pre.rc lib/generators/wcc/templates/wcc_contentful.rb
wcc-contentful-app-0.4.0.pre.alpha lib/generators/wcc/templates/wcc_contentful.rb
wcc-contentful-0.3.0 lib/generators/wcc/templates/wcc_contentful.rb
wcc-contentful-app-0.3.0.pre.rc3 lib/generators/wcc/templates/wcc_contentful.rb
wcc-contentful-app-0.3.0.pre.rc2 lib/generators/wcc/templates/wcc_contentful.rb
wcc-contentful-app-0.3.0.pre.rc lib/generators/wcc/templates/wcc_contentful.rb
wcc-contentful-app-0.2.2 lib/generators/wcc/templates/wcc_contentful.rb
wcc-contentful-0.2.2 lib/generators/wcc/templates/wcc_contentful.rb
wcc-contentful-0.2.1 lib/generators/wcc/templates/wcc_contentful.rb
wcc-contentful-0.2.0 lib/generators/wcc/templates/wcc_contentful.rb