Module: SettingsHelper

Included in:
Blog::CategoriesController, Blog::PostsController, Setting
Defined in:
app/helpers/settings_helper.rb

Overview

@Name : SettingsHelper

@Purpose: This is a helper file for settings related configurations
@Created_at : 20-06-2012
@Modified_at : 20-06-2012
@Company : Mindfire Solutions

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.commentableObject

settings for blog posts to be commentable returns 1



12
13
14
# File 'app/helpers/settings_helper.rb', line 12

def self.commentable
  return 1
end

.moderatableObject

settings for blog posts to be moderatable returns 1



24
25
26
# File 'app/helpers/settings_helper.rb', line 24

def self.moderatable
  return 1
end

.uncommentableObject

settings for blog posts to be uncommentable returns 0



18
19
20
# File 'app/helpers/settings_helper.rb', line 18

def self.uncommentable
  return 0
end

.unmoderatableObject

settings for blog posts to be unmoderatable returns 0



30
31
32
# File 'app/helpers/settings_helper.rb', line 30

def self.unmoderatable
  return 0
end

Instance Method Details

#blog_posts_per_pageObject



34
35
36
# File 'app/helpers/settings_helper.rb', line 34

def blog_posts_per_page
  10
end