spec/dummy/app/controllers/parameters_controller.rb in preserve-0.1.2 vs spec/dummy/app/controllers/parameters_controller.rb in preserve-1.0.0
- old
+ new
@@ -1,6 +1,7 @@
class ParametersController < ApplicationController
- preserve :per_page, :page, only: :index
+ preserve :page, :per_page, only: :index
+ preserve :status, allow_blank: true
preserve :order, prefix: 'preserved'
def index
render json: request_parameters
end