Sha256: 302a971871d5a35442e518d050f34de864aff1f3d9d04d1e3fdc2fc869d1024d
Contents?: true
Size: 878 Bytes
Versions: 3
Compression:
Stored size: 878 Bytes
Contents
require "wcc/contentful/version" require 'contentful_model' module WCC module Contentful class << self attr_accessor :configuration end def self.configure self.configuration ||= Configuration.new yield(configuration) Configuration.configure_contentful_model end class Configuration attr_accessor :access_token, :space, :default_locale def initialize @access_token = "" @space = "" @default_locale = "" end def self.configure_contentful_model ContentfulModel.configure do |config| config.access_token = WCC::Contentful.configuration.access_token config.space = WCC::Contentful.configuration.space config.default_locale = WCC::Contentful.configuration.default_locale end end end end end require "wcc/contentful/redirect"
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
wcc-contentful-0.0.3 | lib/wcc/contentful.rb |
wcc-contentful-0.0.2 | lib/wcc/contentful.rb |
wcc-contentful-0.0.1 | lib/wcc/contentful.rb |