lib/blogo/paginator.rb
# Fetch items for the current page.
#
# @return [Array<ActiveRecord::Base>]
Fetch items for the current page.
Fetch items for the current page .
def items
      @items ||= begin
        offset = @per_page * (@page - 1)
        @relation.limit(@per_page).offset(offset)
      end
    end
def items @items ||= begin offset = @per_page * ( @page - 1 ) @relation . limit ( @per_page ) . offset ( offset ) end end
Fetch items for the current page.
Fetch items for the current page .
None
Array<ActiveRecord::Base>