Sha256: 9f3a8a77182201d343ce84a3691efdb16b9f9b50e66864035d15bae7f2f4561e
Contents?: true
Size: 746 Bytes
Versions: 25
Compression:
Stored size: 746 Bytes
Contents
# <%= autogenerated_model_warning %> class AssignmentGroup < ApplicationRecord include CanvasSync::Record include CanvasSync::Concerns::ApiSyncable # include CanvasSync::Concerns::LiveEventSync canvas_sync_features :defaults validates :canvas_id, uniqueness: true, presence: true belongs_to :course, primary_key: :canvas_id, foreign_key: :canvas_course_id, optional: true has_many :assignments, primary_key: :canvas_id, foreign_key: :canvas_assignment_group_id serialize :rules api_syncable({ canvas_id: :id, name: :name, position: :position, rules: :rules, group_weight: :group_weight, workflow_state: ->(p) { 'available' }, }, -> (api) { api.assignment_group(canvas_course_id, canvas_id) }) end
Version data entries
25 entries across 25 versions & 1 rubygems