Class: ComfyBlog::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/comfy_blog/configuration.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

Configuration defaults



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

def initialize
  @posts_per_page   = 10
  @app_layout       = "comfy/blog/application"
  @public_blog_path = nil
end

Instance Attribute Details

#app_layoutObject

Application layout to be used to index blog posts. Default is ‘comfy/blog/application’



6
7
8
# File 'lib/comfy_blog/configuration.rb', line 6

def app_layout
  @app_layout
end

#posts_per_pageObject

Number of posts per page. Default is 10



9
10
11
# File 'lib/comfy_blog/configuration.rb', line 9

def posts_per_page
  @posts_per_page
end

#public_blog_pathObject

Auto-setting parameter derived from the routes



12
13
14
# File 'lib/comfy_blog/configuration.rb', line 12

def public_blog_path
  @public_blog_path
end