style: format strings in password resets controller

- Standardize string quotes in the PasswordResetsController
- Ensure consistent formatting for better readability

This commit improves the code style by changing single quotes to double
quotes for string literals in the PasswordResetsController. This change
is purely cosmetic and does not affect the functionality of the code.
This commit is contained in:
songtianlun 2025-01-09 17:22:32 +08:00
parent f1f5e37d7b
commit 7cf8411afa

View File

@ -16,7 +16,7 @@ class PasswordResetsController < ApplicationController
redirect_to root_url
else
flash.now[:danger] = "Email not found"
render 'new', status: :unprocessable_entity
render "new", status: :unprocessable_entity
end
end
@ -26,7 +26,7 @@ class PasswordResetsController < ApplicationController
def update
if params[:user][:password].empty?
@user.errors.add(:password, "can't be empty")
render 'edit', status: :unprocessable_entity
render "edit", status: :unprocessable_entity
elsif @user.update(user_params)
forget(@user)
reset_session
@ -35,7 +35,7 @@ class PasswordResetsController < ApplicationController
flash[:success] = "Password has been reset"
redirect_to @user
else
render 'edit', status: :unprocessable_entity
render "edit", status: :unprocessable_entity
end
end