精简model/controllers/views

This commit is contained in:
sylor_huang@126.com
2020-04-23 11:08:29 +08:00
parent 4f343c7967
commit 620c8754d4
166 changed files with 52 additions and 7743 deletions

View File

@@ -1,7 +1,7 @@
class AttachmentGroupSetting < ActiveRecord::Base
belongs_to :attachment
belongs_to :course_group
belongs_to :course
# 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)}