gitlab-org--gitlab-foss/app/controllers/concerns/continue_params.rb

17 lines
384 B
Ruby
Raw Normal View History

# frozen_string_literal: true
2016-03-07 04:36:16 -05:00
module ContinueParams
include InternalRedirect
extend ActiveSupport::Concern
def continue_params
continue_params = params[:continue]
return {} unless continue_params
2016-03-07 05:45:14 -05:00
continue_params = continue_params.permit(:to, :notice, :notice_now)
continue_params[:to] = safe_redirect_path(continue_params[:to])
continue_params
end
end