Sha256: 76c0e741bd6dfce9b16399dbd3dbde85966c7a75037a845a1d717af47e6378cb

Contents?: true

Size: 1.25 KB

Versions: 1

Compression:

Stored size: 1.25 KB

Contents

# Loading engine only if this is not a standalone installation
unless defined? ComfortableMexicanSofa::Application
  require File.expand_path('comfortable_mexican_sofa/engine', File.dirname(__FILE__))
end

[ 'comfortable_mexican_sofa/configuration',
  'comfortable_mexican_sofa/http_auth',
  'comfortable_mexican_sofa/rails_extensions',
  'comfortable_mexican_sofa/controller_methods',
  'comfortable_mexican_sofa/view_hooks',
  'comfortable_mexican_sofa/view_methods',
  'comfortable_mexican_sofa/form_builder',
  'comfortable_mexican_sofa/acts_as_tree',
  'comfortable_mexican_sofa/tag',
  'comfortable_mexican_sofa/fixtures'
].each do |path|
  require File.expand_path(path, File.dirname(__FILE__))
end

Dir.glob(File.expand_path('comfortable_mexican_sofa/tags/*.rb', File.dirname(__FILE__))).each do |path|
  require path
end

module ComfortableMexicanSofa
  class << self
    
    # Modify CMS configuration
    # Example:
    #   ComfortableMexicanSofa.configure do |config|
    #     config.cms_title = 'ComfortableMexicanSofa'
    #   end
    def configure
      yield configuration
    end
    
    # Accessor for ComfortableMexicanSofa::Configuration
    def configuration
      @configuration ||= Configuration.new
    end
    alias :config :configuration
    
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
comfortable_mexican_sofa-1.1.2 lib/comfortable_mexican_sofa.rb