app/models/assignment.rb
Class Assignment
has 39 methods (exceeds 20 allowed). Consider refactoring. Open
Open
class Assignment < Progress
include Contextualization
include WithMessages
include Gamified
Method to_resource_h
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def to_resource_h
excluded_fields = %i(created_at exercise_id id organization_id parent_id solution submission_id
submission_status submitted_at submitter_id top_submission_status updated_at misplaced)
as_json(except: excluded_fields,