Update users controller
This commit is contained in:
parent
e4c31633c5
commit
0d4733b130
2 changed files with 5 additions and 3 deletions
|
|
@ -32,6 +32,6 @@ class UsersController < ApplicationController
|
|||
|
||||
# Somewhat of a hack: users/current/edit
|
||||
def load_user
|
||||
@user ||= (params[:user_id] && params[:user_id] != 'current' && User.find(params[:user_id]) || current_user)
|
||||
@user ||= (params[:id] && params[:id] != 'current' && User.find(params[:id]) || current_user)
|
||||
end
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue