Files
osem/app/controllers/confirmations_controller.rb
2014-12-01 14:40:31 +02:00

13 lines
257 B
Ruby

class ConfirmationsController < Devise::ConfirmationsController
protected
def after_confirmation_path_for(_resource_name, resource)
if signed_in?
signed_in_root_path(resource)
else
sign_in resource
root_path
end
end
end