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
-
.configuration ⇒ Object
(also: config)
Accessor for ComfortableMexicanSofa::Configuration.
-
.configure {|configuration| ... } ⇒ Object
Modify CMS configuration Example: ComfortableMexicanSofa.configure do |config| config.cms_title = ‘ComfortableMexicanSofa’ end.
- .logger ⇒ Object
- .logger=(new_logger) ⇒ Object
Class Method Details
.configuration ⇒ Object 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
42 43 44 |
# File 'lib/comfortable_mexican_sofa.rb', line 42 def configure yield configuration end |
.logger ⇒ Object
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 |