Sha256: 42a473a690c405ad57bfedb5da1699d42949c85db0462cc77daf86e59a16786d
Contents?: true
Size: 546 Bytes
Versions: 3
Compression:
Stored size: 546 Bytes
Contents
# frozen_string_literal: true require 'wcc/contentful/rails' require_relative './app/exceptions' require_relative './app/model_validators' require_relative './ext/model' module WCC::Contentful::App def self.init! raise ArgumentError, 'Please first call WCC::Contentful.init!' unless WCC::Contentful.types # Extend all model types w/ validation & extra fields WCC::Contentful.types.each_value do |t| file = File.dirname(__FILE__) + "/model/#{t.name.underscore}.rb" require file if File.exist?(file) end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
wcc-contentful-app-0.4.0.pre.rc | lib/wcc/contentful/app.rb |
wcc-contentful-app-0.4.0.pre.alpha | lib/wcc/contentful/app.rb |
wcc-contentful-app-0.3.0.pre.rc3 | lib/wcc/contentful/app.rb |