app/controllers/users/registrations_controller.rb
# Overwrite update_resource to let users to update their user without giving their password
Overwrite update_resource to let users to update their user without giving their password
Overwrite update_resource to let users to update their user without giving their password
def update_resource(resource, params)
    if signed_in_with_google
      params.delete("current_password")
      resource.update_without_password(params)
    else
      resource.update_with_password(params)
    end
  end
def update_resource ( resource , params ) if signed_in_with_google params . delete ( "current_password" ) resource . update_without_password ( params ) else resource . update_with_password ( params ) end end
Overwrite update_resource to let users to update their user without giving their password
Overwrite update_resource to let users to update their user without giving their password
resource
<not_specific>
params
<not_specific>