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
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_layout ⇒ Object
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_page ⇒ Object
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_path ⇒ Object
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 |