diff --git a/app/presenters/asciicast_list_presenter.rb b/app/presenters/asciicast_list_presenter.rb index e989e9c..852d465 100644 --- a/app/presenters/asciicast_list_presenter.rb +++ b/app/presenters/asciicast_list_presenter.rb @@ -27,6 +27,12 @@ class AsciicastListPresenter end def items + @items ||= get_items + end + + private + + def get_items PaginatingDecorator.new( Asciicast.for_category_ordered(category, order, page, per_page) )