Module: ContinueParams

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

Instance Method Summary collapse

Methods included from InternalRedirect

#full_path_for_uri, #host_allowed?, #referer_path, #safe_redirect_path, #safe_redirect_path_for_url, #sanitize_redirect

Instance Method Details

#continue_paramsObject


7
8
9
10
11
12
13
14
15
# File 'app/controllers/concerns/continue_params.rb', line 7

def continue_params
  continue_params = params[:continue]
  return {} unless continue_params

  continue_params = continue_params.permit(:to, :notice, :notice_now)
  continue_params[:to] = safe_redirect_path(continue_params[:to])

  continue_params
end