Module: ComfyBlog

Defined in:
lib/comfy_blog.rb,
lib/comfy_blog/engine.rb,
lib/comfy_blog/version.rb,
lib/comfy_blog/configuration.rb

Defined Under Namespace

Modules: CmsSiteExtensions Classes: Configuration, Engine

Constant Summary collapse

VERSION =
"2.0.7"

Class Method Summary collapse

Class Method Details

.configurationObject Also known as: config

Accessor for ComfyBlog::Configuration



22
23
24
# File 'lib/comfy_blog.rb', line 22

def configuration
  @configuration ||= ComfyBlog::Configuration.new
end

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

Modify Blog configuration Example:

ComfyBlog.configure do |config|
  config.posts_per_page = 5
end

Yields:



17
18
19
# File 'lib/comfy_blog.rb', line 17

def configure
  yield configuration
end