work on forum
This commit is contained in:
12
app/presenters/forum_topic_presenter.rb
Normal file
12
app/presenters/forum_topic_presenter.rb
Normal file
@@ -0,0 +1,12 @@
|
||||
class ForumTopicPresenter < Presenter
|
||||
attr_reader :forum_topic, :forum_posts
|
||||
|
||||
def initialize(forum_topic, forum_posts)
|
||||
@forum_posts = forum_posts
|
||||
@forum_topic = forum_topic
|
||||
end
|
||||
|
||||
def pagination_html(template)
|
||||
Paginators::ForumTopic.new(forum_topic, forum_posts).numbered_pagination_html(template)
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user