blob: 0a995c45bdf7ce31eeb3747cb44ee48f4d73893f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
module ContinueParams
extend ActiveSupport::Concern
def continue_params
continue_params = params[:continue]
return nil unless continue_params
continue_params = continue_params.permit(:to, :notice, :notice_now)
return unless continue_params[:to] && continue_params[:to].start_with?('/')
continue_params
end
end
|