debian-mirror-gitlab/app/controllers/concerns/continue_params.rb

15 lines
354 B
Ruby
Raw Normal View History

2016-06-02 11:05:42 +05:30
module ContinueParams
2018-10-15 14:42:47 +05:30
include InternalRedirect
2016-06-02 11:05:42 +05:30
extend ActiveSupport::Concern
def continue_params
continue_params = params[:continue]
return nil unless continue_params
continue_params = continue_params.permit(:to, :notice, :notice_now)
2018-10-15 14:42:47 +05:30
continue_params[:to] = safe_redirect_path(continue_params[:to])
2016-06-02 11:05:42 +05:30
continue_params
end
end