forgeplus/app/models/attachment_group_setting.rb

9 lines
279 B
Ruby
Raw Normal View History

2020-03-09 00:40:16 +08:00
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