Sha256: 81c713ac0d5be7f654b54807b242a7a2ae1eae74d5a6e51c8c1b3517f32699d7
Contents?: true
Size: 1.06 KB
Versions: 1
Compression:
Stored size: 1.06 KB
Contents
# Loading engine only if this is not a standalone installation unless defined? LucyCms::Application require File.expand_path('LucyCMS/engine', File.dirname(__FILE__)) end [ 'LucyCMS/configuration', 'LucyCMS/rails_extensions', 'LucyCMS/controller_methods', 'LucyCMS/view_hooks', 'LucyCMS/view_methods', 'LucyCMS/form_builder', 'LucyCMS/site_form_builder', 'LucyCMS/acts_as_tree', '../app/models/cms_block', '../app/models/cms_snippet', 'LucyCMS/cms_tag' ].each do |path| require File.expand_path(path, File.dirname(__FILE__)) end Dir.glob(File.expand_path('LucyCMS/cms_tag/*.rb', File.dirname(__FILE__))).each do |tag_path| require tag_path end module LucyCms class << self # Modify CMS configuration # Example: # LucyCMS.configure do |config| # config.config.cms_upload_directory = 'shared' # end def configure yield configuration end # Accessor for LucyCMS::Configuration def configuration @configuration ||= Configuration.new end alias :config :configuration end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
lucy_cms-0.0.6 | lib/lucy_cms.rb |