modify tiding api per page

dev_forum
p31729568 6 years ago
parent e734ecf789
commit aed8cc0e3e

@ -20,7 +20,7 @@ class TidingsController < ApplicationController
tidings = tidings.where(container_type: 'ProjectPackage') if params[:type] == 'project_package'
@count = tidings.count
@tidings = paginate(tidings.order(created_at: :desc), per_page: 100)
@tidings = paginate(tidings.order(created_at: :desc), per_page: 10)
@onclick_time = current_user.click_time
end

Loading…
Cancel
Save