Class: Thredded::Workgroup::ViewHooks::TopicWithLastPost
- Inherits:
-
Object
- Object
- Thredded::Workgroup::ViewHooks::TopicWithLastPost
- Defined in:
- app/view_hooks/thredded/workgroup/view_hooks.rb
Overview
View hooks for a Topic when displaying last post.
Instance Attribute Summary collapse
- #last_post ⇒ Thredded::AllViewHooks::ViewHook readonly
- #last_post_with_controls ⇒ Thredded::AllViewHooks::ViewHook readonly
Instance Method Summary collapse
-
#initialize ⇒ TopicWithLastPost
constructor
A new instance of TopicWithLastPost.
Constructor Details
#initialize ⇒ TopicWithLastPost
Returns a new instance of TopicWithLastPost.
21 22 23 24 |
# File 'app/view_hooks/thredded/workgroup/view_hooks.rb', line 21 def initialize @last_post_with_controls = Thredded::AllViewHooks::ViewHook.new @last_post = Thredded::AllViewHooks::ViewHook.new end |
Instance Attribute Details
#last_post ⇒ Thredded::AllViewHooks::ViewHook (readonly)
19 20 21 |
# File 'app/view_hooks/thredded/workgroup/view_hooks.rb', line 19 def last_post @last_post end |
#last_post_with_controls ⇒ Thredded::AllViewHooks::ViewHook (readonly)
16 17 18 |
# File 'app/view_hooks/thredded/workgroup/view_hooks.rb', line 16 def last_post_with_controls @last_post_with_controls end |