Sha256: fdee8f50a2f0f1163fb188421bbcec300b3b69dce6e6638df04fd5b0755148b5
Contents?: true
Size: 660 Bytes
Versions: 82
Compression:
Stored size: 660 Bytes
Contents
# <%= autogenerated_model_warning %> class Section < ApplicationRecord include CanvasSync::Record include CanvasSync::Concerns::ApiSyncable validates :canvas_id, uniqueness: true, presence: true belongs_to :course, primary_key: :canvas_id, foreign_key: :canvas_course_id, optional: true has_many :enrollments, primary_key: :canvas_id, foreign_key: :canvas_section_id api_syncable({ sis_id: :sis_section_id, canvas_course_id: :course_id, canvas_nonxlist_course_id: :nonxlist_course_id, name: :name, start_at: :start_at, end_at: :end_at, workflow_state: ->(r){ 'active' }, }, -> (api) { api.section(canvas_id) }) end
Version data entries
82 entries across 82 versions & 1 rubygems