Class: Thredded::Workgroup::ViewHooks::TopicWithLastPost

Inherits:
Object
  • Object
show all
Defined in:
app/view_hooks/thredded/workgroup/view_hooks.rb

Overview

View hooks for a Topic when displaying last post.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeTopicWithLastPost

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_postThredded::AllViewHooks::ViewHook (readonly)

Returns:

  • (Thredded::AllViewHooks::ViewHook)


19
20
21
# File 'app/view_hooks/thredded/workgroup/view_hooks.rb', line 19

def last_post
  @last_post
end

#last_post_with_controlsThredded::AllViewHooks::ViewHook (readonly)

Returns:

  • (Thredded::AllViewHooks::ViewHook)


16
17
18
# File 'app/view_hooks/thredded/workgroup/view_hooks.rb', line 16

def last_post_with_controls
  @last_post_with_controls
end