Module: Homeland
- Defined in:
- lib/homeland.rb,
lib/homeland/engine.rb,
lib/homeland/setting.rb,
app/models/homeland/node.rb,
app/models/homeland/reply.rb,
app/models/homeland/topic.rb,
app/models/homeland/section.rb,
app/helpers/homeland/topics_helper.rb,
app/helpers/homeland/application_helper.rb,
lib/generators/homeland/views_generator.rb,
lib/generators/homeland/install_generator.rb,
app/controllers/homeland/topics_controller.rb,
app/controllers/homeland/replies_controller.rb
Defined Under Namespace
Modules: ApplicationHelper, Generators, TopicsHelper
Classes: ApplicationController, Engine, Node, RepliesController, Reply, Section, Topic, TopicsController
Class Method Summary
collapse
Class Method Details
.app_name ⇒ Object
9
10
11
|
# File 'lib/homeland/setting.rb', line 9
def app_name
@@app_name || "Forum"
end
|
.current_user_method ⇒ Object
21
22
23
|
# File 'lib/homeland/setting.rb', line 21
def current_user_method
@@current_user_method || "current_user"
end
|
.per_page ⇒ Object
13
14
15
|
# File 'lib/homeland/setting.rb', line 13
def per_page
@@per_page || 20
end
|
.require_user_method ⇒ Object
25
26
27
|
# File 'lib/homeland/setting.rb', line 25
def require_user_method
@@require_user_method || "require_user"
end
|
.user_avatar_method ⇒ Object
33
34
35
|
# File 'lib/homeland/setting.rb', line 33
def user_avatar_method
@@user_avatar_method || "avatar"
end
|
.user_class ⇒ Object
17
18
19
|
# File 'lib/homeland/setting.rb', line 17
def user_class
(@@user_class || "User").constantize
end
|
.user_path_method ⇒ Object
29
30
31
|
# File 'lib/homeland/setting.rb', line 29
def user_path_method
@@user_path_method || "user_path"
end
|