Class: Thredded::AllViewHooks::PostsCommon

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

Overview

View hooks for collections of public or private posts.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializePostsCommon

Returns a new instance of PostsCommon.



51
52
53
54
55
# File 'app/view_hooks/thredded/all_view_hooks.rb', line 51

def initialize
  @before_first_unread_post = ViewHook.new
  @pagination_top = ViewHook.new
  @pagination_bottom = ViewHook.new
end

Instance Attribute Details

#before_first_unread_postThredded::AllViewHooks::ViewHook (readonly)



45
46
47
# File 'app/view_hooks/thredded/all_view_hooks.rb', line 45

def before_first_unread_post
  @before_first_unread_post
end

#pagination_bottomThredded::AllViewHooks::ViewHook (readonly)



49
50
51
# File 'app/view_hooks/thredded/all_view_hooks.rb', line 49

def pagination_bottom
  @pagination_bottom
end

#pagination_topThredded::AllViewHooks::ViewHook (readonly)



47
48
49
# File 'app/view_hooks/thredded/all_view_hooks.rb', line 47

def pagination_top
  @pagination_top
end