mirror of
https://gitlink.org.cn/Gitlink/forgeplus.git
synced 2026-05-09 06:24:04 +08:00
init project
This commit is contained in:
8
app/models/attachment_group_setting.rb
Normal file
8
app/models/attachment_group_setting.rb
Normal file
@@ -0,0 +1,8 @@
|
||||
class AttachmentGroupSetting < ActiveRecord::Base
|
||||
belongs_to :attachment
|
||||
belongs_to :course_group
|
||||
belongs_to :course
|
||||
|
||||
scope :none_published, -> {where("attachment_group_settings.publish_time IS NULL OR attachment_group_settings.publish_time > ?", Time.now)}
|
||||
|
||||
end
|
||||
Reference in New Issue
Block a user