diff --git a/app/controllers/manager/application_controller.rb b/app/controllers/manager/application_controller.rb index 4e76a2af1..b913664fc 100644 --- a/app/controllers/manager/application_controller.rb +++ b/app/controllers/manager/application_controller.rb @@ -4,8 +4,10 @@ module Manager before_action :default_params def default_params - params[:order] ||= "created_at" - params[:direction] ||= "desc" + params[resource_name] ||= { + order: "created_at", + direction: "desc" + } end protected