ref: master
plugins/work_assignment/lib/ext/folder.rb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
require_dependency 'article' require_dependency 'folder' class Folder < Article after_save :work_assignment_sync_submissions_privacy def work_assignment_sync_submissions_privacy return unless self.parent.kind_of? WorkAssignmentPlugin::WorkAssignment self.children.each do |c| c.published = self.published c.article_privacy_exceptions = self.article_privacy_exceptions end end end |