mirror of
https://gitlink.org.cn/Gitlink/forgeplus.git
synced 2026-05-22 12:45:46 +08:00
新增:个人主页置顶功能
This commit is contained in:
@@ -190,6 +190,7 @@ class User < Owner
|
||||
has_many :clas, through: :user_clas
|
||||
|
||||
has_one :page, :dependent => :destroy
|
||||
has_many :home_top_settings, dependent: :destroy
|
||||
|
||||
# Groups and active users
|
||||
scope :active, lambda { where(status: [STATUS_ACTIVE, STATUS_EDIT_INFO]) }
|
||||
|
||||
Reference in New Issue
Block a user