Browse Source

update

pull/343/head
chenjing 3 years ago
parent
commit
a04e0508d6
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      app/controllers/users/clas_controller.rb

+ 1
- 1
app/controllers/users/clas_controller.rb View File

@@ -23,7 +23,7 @@ class Users::ClasController < Users::BaseController
end

def destroy
@user_cla = current_user.user_clas.find_by(cla_id: params[:cla_id])
@user_cla = current_user.user_clas.find params[:id]
@user_cla.update_attributes(state: 2)
render_ok
end


Loading…
Cancel
Save