Class: RegistrationsController

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

Instance Method Summary (collapse)

Instance Method Details

- (Object) create



5
6
7
8
# File 'app/controllers/registrations_controller.rb', line 5

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

- (Object) update



10
11
12
13
14
15
16
17
18
19
# File 'app/controllers/registrations_controller.rb', line 10

def update
  if password_needed?
    set_flash_message :notice, :updated
     resource_name, resource
    redirect_to after_update_path_for(resource)
  else
    clean_up_passwords(resource)
    render_with_scope :edit
  end
end