Commit afd54469 by Đường Sỹ Hoàng

Removed unuse function & fixed identation

parent 1efda6a9
...@@ -57,17 +57,6 @@ class UsersController < ApplicationController ...@@ -57,17 +57,6 @@ class UsersController < ApplicationController
params.require(:user).permit(:name, :email, :password, :password_confirmation) params.require(:user).permit(:name, :email, :password, :password_confirmation)
end end
# Before filters
# Confirms a logged-in user.
def logged_in_user
unless logged_in?
store_location
flash[:danger] = "Please log in."
redirect_to login_url
end
end
# Confirms the correct user. # Confirms the correct user.
def correct_user def correct_user
@user = User.find(params[:id]) @user = User.find(params[:id])
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment