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.



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

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)



39
40
41
# File 'app/view_hooks/thredded/all_view_hooks.rb', line 39

def before_first_unread_post
  @before_first_unread_post
end

#pagination_bottomThredded::AllViewHooks::ViewHook (readonly)



43
44
45
# File 'app/view_hooks/thredded/all_view_hooks.rb', line 43

def pagination_bottom
  @pagination_bottom
end

#pagination_topThredded::AllViewHooks::ViewHook (readonly)



41
42
43
# File 'app/view_hooks/thredded/all_view_hooks.rb', line 41

def pagination_top
  @pagination_top
end