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



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

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’



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

def app_layout
  @app_layout
end

#posts_per_pageObject

Number of posts per page. Default is 10



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

def posts_per_page
  @posts_per_page
end

#public_blog_pathObject

Auto-setting parameter derived from the routes



14
15
16
# File 'lib/comfy_blog/configuration.rb', line 14

def public_blog_path
  @public_blog_path
end