Method: A::Users::PasswordsController#update

Defined in:
lib/generators/mdwa/sandbox/templates/app/controllers/a/users/passwords_controller.rb

#updateObject



11
12
13
14
15
16
17
18
19
# File 'lib/generators/mdwa/sandbox/templates/app/controllers/a/users/passwords_controller.rb', line 11

def update
  @user = current_user
  if @user.update_attributes(params[@user.class.name.underscore])
    (@user, :bypass => true)
    redirect_to a_root_path, :notice => "Password updated."
  else
    render :edit
  end
end