Sha256: 04044522cfd88f14b3365a38d38221bead979b69f7061cf7a5339ce2f2c7f387
Contents?: true
Size: 772 Bytes
Versions: 28
Compression:
Stored size: 772 Bytes
Contents
# # <%= autogenerated_migration_warning %> class ContextModuleItem < ApplicationRecord include CanvasSync::Record include CanvasSync::Concerns::ApiSyncable canvas_sync_features :defaults belongs_to :context_module, primary_key: :canvas_id, foreign_key: :canvas_context_module_id, optional: true belongs_to :content, polymorphic: true, optional: true, primary_key: :canvas_id, foreign_key: :canvas_content_id, foreign_type: :canvas_content_type belongs_to :assignment, foreign_key: :canvas_assignment_id, primary_key: :canvas_id api_syncable({ # TODO If your tool Syncs ContextModuleItems, please complete this and merge it into CanvasSync }, -> (api) { api.module_item(context_module.context.canvas_id, context_module.canvas_id, canvas_id) }) end
Version data entries
28 entries across 28 versions & 1 rubygems