Class: ComfyBlog::Configuration
- Inherits:
-
Object
- Object
- ComfyBlog::Configuration
- Defined in:
- lib/comfy_blog/configuration.rb
Instance Attribute Summary collapse
-
#auto_publish_comments ⇒ Object
Comments can be automatically approved/published by changing this setting Default is false.
-
#posts_per_page ⇒ Object
Number of posts per page.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
Configuration defaults.
Constructor Details
#initialize ⇒ Configuration
Configuration defaults
12 13 14 15 |
# File 'lib/comfy_blog/configuration.rb', line 12 def initialize @posts_per_page = 10 @auto_publish_comments = false end |
Instance Attribute Details
#auto_publish_comments ⇒ Object
Comments can be automatically approved/published by changing this setting Default is false.
9 10 11 |
# File 'lib/comfy_blog/configuration.rb', line 9 def auto_publish_comments @auto_publish_comments end |
#posts_per_page ⇒ Object
Number of posts per page. Default is 10
5 6 7 |
# File 'lib/comfy_blog/configuration.rb', line 5 def posts_per_page @posts_per_page end |