Sha256: 913bea5fb413aa74fcd289f01a226db63b5e0f59f0a0ac7c8be373f078872689
Contents?: true
Size: 625 Bytes
Versions: 7
Compression:
Stored size: 625 Bytes
Contents
# <%= autogenerated_model_warning %> class AssignmentGroup < ApplicationRecord include CanvasSync::ApiSyncable 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
7 entries across 7 versions & 1 rubygems