Sha256: f6e27b96730a70ed8dd053ba61fbf1bd125463701cc8392254e9ab96b375f653
Contents?: true
Size: 853 Bytes
Versions: 6
Compression:
Stored size: 853 Bytes
Contents
# # # AUTO GENERATED MODEL # This model was auto generated by the CanvasSync Gem. # You can customize it as needed, but make sure you test # any changes you make to the auto generated methods. # class Section < ApplicationRecord include CanvasSync::Record include CanvasSync::Concerns::ApiSyncable 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 :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
6 entries across 6 versions & 1 rubygems