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
|