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



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_commentsObject

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_pageObject

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