mirror of
https://gitlink.org.cn/Gitlink/forgeplus.git
synced 2026-05-03 03:40:49 +08:00
Merge pull request 'user_clas show' (#75) from KingChan/forgeplus:chenjing into standalone_develop
This commit is contained in:
@@ -4,6 +4,10 @@ class Users::ClasController < Users::BaseController
|
||||
def index
|
||||
@user_clas = UserCla.where(user: current_user)
|
||||
end
|
||||
|
||||
def show
|
||||
@user_cla = current_user.user_clas.find params[:id]
|
||||
end
|
||||
|
||||
def create
|
||||
@user_cla = current_user.user_clas.find_by(cla_id: params[:cla_id])
|
||||
|
||||
Reference in New Issue
Block a user