File tree 2 files changed +4
-10
lines changed
2 files changed +4
-10
lines changed Original file line number Diff line number Diff line change @@ -40,7 +40,7 @@ def recorded_at
40
40
# if we expect a submission return submitted_at because canvas expects a
41
41
# submission to be submitted.
42
42
submitted_at
43
- elsif graded_at . nil? || ( @submission . graded? && @submission . score == 0 ) # rubocop:disable Lint/DuplicateBranch https://github.com/rubocop/rubocop/issues/10153
43
+ elsif graded_at . nil? || ( @submission . graded? && @submission . score == 0 ) # rubocop:disable Lint/DuplicateBranch -- https://github.com/rubocop/rubocop/issues/10153
44
44
# if graded_at is nil we know that due_at is in the future. We know it
45
45
# must be in the future because @submission.missing? above would have
46
46
# been true. With due_at in the future, means it has not been recorded yet.
@@ -100,9 +100,7 @@ def submitted_at
100
100
@submission &.submitted_at
101
101
end
102
102
103
- def non_digital_submission?
104
- @assignment . non_digital_submission?
105
- end
103
+ delegate :non_digital_submission? , to : :@assignment
106
104
107
105
private
108
106
Original file line number Diff line number Diff line change @@ -69,13 +69,9 @@ def index_for(value)
69
69
( ( value / @bucket_size ) + 0.5 ) . floor
70
70
end
71
71
72
- def max
73
- @counter . max
74
- end
72
+ delegate :max , to : :@counter
75
73
76
- def min
77
- @counter . min
78
- end
74
+ delegate :min , to : :@counter
79
75
80
76
def first_quartile
81
77
@counter . quartiles [ 0 ]
You can’t perform that action at this time.
0 commit comments