Allow RfC index action for exercises to be nested

This commit is contained in:
Sebastian Serth
2023-10-22 19:12:14 +02:00
committed by Sebastian Serth
parent 5ecde8c8bd
commit bbee854002
5 changed files with 11 additions and 6 deletions

View File

@ -42,6 +42,10 @@ class RequestForComment < ApplicationRecord
state(solved_before_last_save, full_score_reached_before_last_save)
end
def self.parent_resource
Exercise
end
private
def state(solved, full_score_reached)