mirror of
https://github.com/discourse/discourse.git
synced 2025-05-21 18:12:32 +08:00
Fix all the errors to get our tests green on Rails 5.1.
This commit is contained in:
@ -47,7 +47,7 @@ class DirectoryItemsController < ApplicationController
|
||||
result_count = result.count
|
||||
result = result.limit(PAGE_SIZE).offset(PAGE_SIZE * page).to_a
|
||||
|
||||
more_params = params.slice(:period, :order, :asc)
|
||||
more_params = params.slice(:period, :order, :asc).permit!
|
||||
more_params[:page] = page + 1
|
||||
|
||||
# Put yourself at the top of the first page
|
||||
|
Reference in New Issue
Block a user