Class: ComfyBlog::Configuration
- Inherits:
-
Object
- Object
- ComfyBlog::Configuration
- Defined in:
- lib/comfy_blog/configuration.rb
Instance Attribute Summary collapse
-
#app_layout ⇒ Object
Application layout to be used to index blog posts.
-
#posts_per_page ⇒ Object
Number of posts per page.
-
#public_blog_path ⇒ Object
Auto-setting parameter derived from the routes.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
Configuration defaults.
Constructor Details
#initialize ⇒ Configuration
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_layout ⇒ Object
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_page ⇒ Object
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_path ⇒ Object
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 |