* Use Devise registry to list available providers * Cleanups following Devise+Omniauth docs * More cleanups * Use helpers * More cleanups * Oops, forgot to remove these specs
11 lines
231 B
Ruby
11 lines
231 B
Ruby
class RegistrationsController < Devise::RegistrationsController
|
|
prepend_before_action :require_no_authentication, only: []
|
|
|
|
def new
|
|
if user_signed_in?
|
|
redirect_to dashboard_path
|
|
else
|
|
super
|
|
end
|
|
end
|
|
end
|