Allow RfC index action for exercises to be nested
This commit is contained in:

committed by
Sebastian Serth

parent
5ecde8c8bd
commit
bbee854002
@ -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)
|
||||
|
Reference in New Issue
Block a user