Module: ContinueParams

Extended by:
ActiveSupport::Concern
Included in:
Projects::ForksController, Projects::ImportsController
Defined in:
app/controllers/concerns/continue_params.rb

Instance Method Summary collapse

Instance Method Details

#continue_paramsObject


4
5
6
7
8
9
10
11
12
# File 'app/controllers/concerns/continue_params.rb', line 4

def continue_params
  continue_params = params[:continue]
  return nil unless continue_params

  continue_params = continue_params.permit(:to, :notice, :notice_now)
  return unless continue_params[:to] && continue_params[:to].start_with?('/')

  continue_params
end