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

15 lines
354 B
Ruby
Raw Normal View History

2016-03-07 04:36:16 -05:00
module ContinueParams
include InternalRedirect
extend ActiveSupport::Concern
def continue_params
continue_params = params[:continue]
return nil 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