class NoLateSubmissionRule

The NoLateSubmissionRule applies no penalties whatsoever. The collection time is on the due date of the assignment + allow_submit_until

Public Instance Methods

after_collection_message() click to toggle source
# File app/models/no_late_submission_rule.rb, line 13
def after_collection_message
  I18n.t 'submission_rules.no_late_submission_rule.no_late_message'
end
apply_submission_rule(submission) click to toggle source

The NoLateSubmissionRule will not add any penalties

# File app/models/no_late_submission_rule.rb, line 27
def apply_submission_rule(submission)
  submission
end
assignment_valid?() click to toggle source

NoLateSubmissionRule works with all Assignments

# File app/models/no_late_submission_rule.rb, line 22
def assignment_valid?
  !assignment.nil?
end
commit_after_collection_message() click to toggle source

When Students commit code after the collection time, MarkUs should warn the Students with a message saying that the due date has passed, and the work they’re submitting will probably not be graded

# File app/models/no_late_submission_rule.rb, line 9
def commit_after_collection_message
  I18n.t 'submission_rules.no_late_submission_rule.commit_after_late_message'
end
description_of_rule() click to toggle source
# File app/models/no_late_submission_rule.rb, line 31
def description_of_rule
  I18n.t 'submission_rules.no_late_submission_rule.description'
end
grader_tab_partial() click to toggle source
# File app/models/no_late_submission_rule.rb, line 35
def grader_tab_partial
  'submission_rules/no_late/grader_tab'
end
overtime_message(grouping) click to toggle source
# File app/models/no_late_submission_rule.rb, line 17
def overtime_message(grouping)
  I18n.t 'submission_rules.no_late_submission_rule.no_late_message'
end