2018-12-05 23:21:45 +05:30
|
|
|
# frozen_string_literal: true
|
|
|
|
|
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]
|
2019-09-30 21:07:59 +05:30
|
|
|
return {} unless continue_params
|
2016-06-02 11:05:42 +05:30
|
|
|
|
|
|
|
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
|