Class: RegistrationsController

Inherits:
Devise::RegistrationsController
  • Object
show all
Defined in:
app/controllers/registrations_controller.rb

Instance Method Summary collapse

Instance Method Details

#createObject



12
13
14
15
16
# File 'app/controllers/registrations_controller.rb', line 12

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

#editObject



8
9
10
# File 'app/controllers/registrations_controller.rb', line 8

def edit
  redirect_to edit_dashboard_user_path
end

#newObject



3
4
5
6
# File 'app/controllers/registrations_controller.rb', line 3

def new
  build_resource
  render :new
end