Sha256: 998bb0ee9d8f7dac127221d9d88d669cf52cfb746cfdfee2097a54e281d46a58

Contents?: true

Size: 570 Bytes

Versions: 10

Compression:

Stored size: 570 Bytes

Contents

require_relative 'comfy_blog/version'
require_relative 'comfy_blog/engine'
require_relative 'comfy_blog/configuration'
require_relative 'comfy_blog/routing'

module ComfyBlog
  
  class << self
    
    # Modify Blog configuration
    # Example:
    #   ComfyBlog.configure do |config|
    #     config.posts_per_page = 5
    #   end
    def configure
      yield configuration
    end
    
    # Accessor for ComfyBlog::Configuration
    def configuration
      @configuration ||= ComfyBlog::Configuration.new
    end
    alias :config :configuration
    
  end
  
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
comfy_blog-2.0.2 lib/comfy_blog.rb
comfy_blog-2.0.1 lib/comfy_blog.rb
comfy_blog-2.0.0 lib/comfy_blog.rb
comfy_blog-1.12.3 lib/comfy_blog.rb
comfy_blog-1.12.2 lib/comfy_blog.rb
comfy_blog-1.12.1 lib/comfy_blog.rb
comfy_blog-1.12.0 lib/comfy_blog.rb
comfy_blog-1.1.1 lib/comfy_blog.rb
comfy_blog-1.1.0 lib/comfy_blog.rb
comfy_blog-1.0.0 lib/comfy_blog.rb