Sha256: 0f49d815d855a3ee75182dba646943fe4de4c88df1b37462b7fc817084890a2d
Contents?: true
Size: 817 Bytes
Versions: 5
Compression:
Stored size: 817 Bytes
Contents
<%= autogenerated_model_warning %> class Submission < ApplicationRecord include CanvasSync::ApiSyncable validates :canvas_submission_id, uniqueness: true, presence: true belongs_to :assignment, primary_key: :canvas_assignment_id, foreign_key: :canvas_assignment_id, optional: true belongs_to :user, primary_key: :canvas_user_id, foreign_key: :canvas_user_id, optional: true belongs_to :course, primary_key: :canvas_course_id, foreign_key: :canvas_course_id, optional: true api_syncable({ submitted_at: :submitted_at, graded_at: :graded_at, score: :score, points_possible: :points_possible, excused: :excused, workflow_state: :workflow_state, }, -> (api) { api.user_course_assignment_submission(assignment.context.canvas_course_id, canvas_assignment_id, canvas_user_id) }) end
Version data entries
5 entries across 5 versions & 1 rubygems