module BuwebContentModels

Constants

FILES_TO_LOAD
VERSION

Public Class Methods

config() click to toggle source
# File lib/buweb_content_models.rb, line 157
def self.config
  @config ||= Configuration.new
end
configure() { |config| ... } click to toggle source
# File lib/buweb_content_models.rb, line 154
def self.configure
  yield config
end
force_load_all() click to toggle source

Bypass autoloading and force all classes to be loaded

# File lib/buweb_content_models.rb, line 145
def self.force_load_all
  FILES_TO_LOAD.each { |file| require file }
end
load_factories() click to toggle source

For sharing factories with apps that use the gem

# File lib/buweb_content_models.rb, line 150
def self.load_factories
  FactoryGirl.definition_file_paths += [File.expand_path('../../spec/factories',  __FILE__)]
end
root() click to toggle source
# File lib/buweb_content_models.rb, line 140
def self.root
  Pathname.new(File.dirname(__dir__))
end