Class: RegistrationsController

Inherits:
Devise::RegistrationsController
  • Object
show all
Defined in:
lib/generators/frame/omniauth/templates/app/controllers/registrations_controller.rb

Instance Method Summary collapse

Instance Method Details

#createObject



3
4
5
6
# File 'lib/generators/frame/omniauth/templates/app/controllers/registrations_controller.rb', line 3

def create
  super
  session[:omniauth] = nil unless @user.new_record?
end

#editObject



8
9
10
11
# File 'lib/generators/frame/omniauth/templates/app/controllers/registrations_controller.rb', line 8

def edit
  @authentications = current_user.authentications if current_user
  super
end