2016-03-07 04:36:16 -05:00
|
|
|
module ContinueParams
|
2016-03-07 04:06:54 -05:00
|
|
|
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)
|
2016-03-07 04:36:16 -05:00
|
|
|
return unless continue_params[:to] && continue_params[:to].start_with?('/')
|
2016-03-07 04:06:54 -05:00
|
|
|
|
|
|
|
continue_params
|
|
|
|
end
|
|
|
|
end
|