Class: Thredded::AllViewHooks
- Inherits:
-
Object
- Object
- Thredded::AllViewHooks
show all
- Defined in:
- app/view_hooks/thredded/all_view_hooks.rb
Defined Under Namespace
Classes: MessageboardsIndex, ModerationUserPage, PostCommon, PostForm, PostsCommon, ViewHook
Class Attribute Summary collapse
Instance Attribute Summary collapse
Class Method Summary
collapse
-
.reset_instance! ⇒ Object
Called when the class is reloaded so that server restart is not required when changing view hooks in development.
Instance Method Summary
collapse
Constructor Details
Returns a new instance of AllViewHooks.
Class Attribute Details
19
20
21
|
# File 'app/view_hooks/thredded/all_view_hooks.rb', line 19
def instance
@instance
end
|
Instance Attribute Details
12
13
14
|
# File 'app/view_hooks/thredded/all_view_hooks.rb', line 12
def messageboards_index
@messageboards_index
end
|
14
15
16
|
# File 'app/view_hooks/thredded/all_view_hooks.rb', line 14
def moderation_user_page
@moderation_user_page
end
|
6
7
8
|
# File 'app/view_hooks/thredded/all_view_hooks.rb', line 6
def post_common
@post_common
end
|
10
11
12
|
# File 'app/view_hooks/thredded/all_view_hooks.rb', line 10
def post_form
@post_form
end
|
8
9
10
|
# File 'app/view_hooks/thredded/all_view_hooks.rb', line 8
def posts_common
@posts_common
end
|
Class Method Details
.reset_instance! ⇒ Object
Called when the class is reloaded so that server restart is not required when changing view hooks in development.
23
24
25
|
# File 'app/view_hooks/thredded/all_view_hooks.rb', line 23
def reset_instance!
@instance = Thredded::AllViewHooks.new
end
|