mirror of
https://github.com/openSUSE/osem.git
synced 2026-02-04 19:22:50 -05:00
13 lines
257 B
Ruby
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
|