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: ActsAsTree, CmsManageable, DummyAuth, Fixture, HasRevisions, HttpAuth, IsCategorized, IsMirrored, RenderMethods, Tag, ViewHooks, ViewMethods Classes: Configuration, Engine, Error, FormBuilder, MissingLayout, MissingPage, MissingSite

Constant Summary collapse

VERSION =
"1.12.2"

Class Method Summary collapse

Class Method Details

.configurationObject Also known as: config

Accessor for ComfortableMexicanSofa::Configuration



47
48
49
# File 'lib/comfortable_mexican_sofa.rb', line 47

def configuration
  @configuration ||= Configuration.new
end

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

Modify CMS configuration Example:

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

Yields:



42
43
44
# File 'lib/comfortable_mexican_sofa.rb', line 42

def configure
  yield configuration
end

.loggerObject



56
57
58
# File 'lib/comfortable_mexican_sofa.rb', line 56

def logger
  @logger ||= Rails.logger
end

.logger=(new_logger) ⇒ Object



52
53
54
# File 'lib/comfortable_mexican_sofa.rb', line 52

def logger=(new_logger)
  @logger = new_logger
end