2018-05-07 16:47:29 -07:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
2014-11-30 20:06:12 +02:00
|
|
|
class ConfirmationsController < Devise::ConfirmationsController
|
|
|
|
|
protected
|
|
|
|
|
|
2014-12-01 14:40:26 +02:00
|
|
|
def after_confirmation_path_for(_resource_name, resource)
|
2014-11-30 20:06:12 +02:00
|
|
|
if signed_in?
|
|
|
|
|
signed_in_root_path(resource)
|
|
|
|
|
else
|
|
|
|
|
sign_in resource
|
|
|
|
|
root_path
|
|
|
|
|
end
|
|
|
|
|
end
|
|
|
|
|
end
|