Sha256: e6399bf49a5de6841ecbaae4dac455bbf76a3be17d873913ee17d0b49b32d669

Contents?: true

Size: 518 Bytes

Versions: 3

Compression:

Stored size: 518 Bytes

Contents

module ComfyBlog
  class Configuration

    # Application layout to be used to index blog posts.
    # Default is 'comfy/blog/application'
    attr_accessor :app_layout

    # Number of posts per page. Default is 10
    attr_accessor :posts_per_page

    # Auto-setting parameter derived from the routes
    attr_accessor :public_blog_path

    # Configuration defaults
    def initialize
      @posts_per_page   = 10
      @app_layout       = 'comfy/blog/application'
      @public_blog_path = nil
    end

  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
comfy_blog-2.0.2 lib/comfy_blog/configuration.rb
comfy_blog-2.0.1 lib/comfy_blog/configuration.rb
comfy_blog-2.0.0 lib/comfy_blog/configuration.rb