Module: ComfortableMexicanSofa

Defined in:
lib/comfortable_mexican_sofa.rb,
lib/comfortable_mexican_sofa/error.rb,
lib/comfortable_mexican_sofa/engine.rb,
lib/comfortable_mexican_sofa/version.rb

Defined Under Namespace

Modules: AccessControl, ActsAsTree, Content, HasRevisions, RenderMethods, Seeds, ViewHooks Classes: Configuration, Engine, Error, FormBuilder, MissingLayout, MissingPage, MissingSite

Constant Summary collapse

VERSION =
"2.0.19"

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.loggerObject


54
55
56
# File 'lib/comfortable_mexican_sofa.rb', line 54

def logger
  @logger ||= Rails.logger
end

Class Method Details

.configurationObject Also known as: config

Accessor for ComfortableMexicanSofa::Configuration


49
50
51
# File 'lib/comfortable_mexican_sofa.rb', line 49

def configuration
  @configuration ||= Configuration.new
end

.configure {|configuration| ... } ⇒ Object

Modify CMS configuration Example:

ComfortableMexicanSofa.configure do |config|
  config.cms_title = 'ComfortableMexicanSofa'
end

Yields:


44
45
46
# File 'lib/comfortable_mexican_sofa.rb', line 44

def configure
  yield configuration
end