mirror of
https://gitlink.org.cn/Gitlink/forgeplus.git
synced 2026-05-03 11:50:49 +08:00
9 lines
279 B
Ruby
9 lines
279 B
Ruby
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
|