mirror of
https://github.com/astuto/astuto.git
synced 2025-12-16 11:47:56 +01:00
Add test for every action of admin panel
This commit is contained in:
@@ -62,7 +62,7 @@ module Admin
|
||||
|
||||
# overwrite default update
|
||||
def update
|
||||
user = User.find(params[:user][:id])
|
||||
user = User.find(params[:id])
|
||||
|
||||
if params[:user][:password].empty?
|
||||
user.assign_attributes(user_params.except(:password))
|
||||
|
||||
Reference in New Issue
Block a user