@topics = @board.topics.
reorder("#{Message.table_name}.sticky DESC").
includes(:last_reply).
- limit(@topic_pages.items_per_page).
+ limit(@topic_pages.per_page).
offset(@topic_pages.offset).
order(sort_clause).
preload(:author, {:last_reply => :author}).
@replies = @topic.children.
includes(:author, :attachments, {:board => :project}).
reorder("#{Message.table_name}.created_on ASC").
- limit(@reply_pages.items_per_page).
+ limit(@reply_pages.per_page).
offset(@reply_pages.offset).
all
per_page_option,
params['page']
@changesets = @repository.changesets.
- limit(@changeset_pages.items_per_page).
+ limit(@changeset_pages.per_page).
offset(@changeset_pages.offset).
includes(:user, :repository, :parents).
all
@entries = scope.all(
:include => [:project, :activity, :user, {:issue => :tracker}],
:order => sort_clause,
- :limit => @entry_pages.items_per_page,
+ :limit => @entry_pages.per_page,
:offset => @entry_pages.offset
)
@total_hours = scope.sum(:hours).to_f
@versions = @page.content.versions.
select("id, author_id, comments, updated_on, version").
reorder('version DESC').
- limit(@version_pages.items_per_page + 1).
+ limit(@version_pages.per_page + 1).
offset(@version_pages.offset).
all