osem-fcy/app/controllers/confirmations_controller.rb

15 lines
288 B
Ruby
Raw Permalink Normal View History

# 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