Sha256: e71b3165e3bad36779b86cd560d5b924aef958db084639f2342728977177b303

Contents?: true

Size: 321 Bytes

Versions: 5

Compression:

Stored size: 321 Bytes

Contents

<%= autogenerated_model_warning %>

class Account < ApplicationRecord
  include CanvasSync::ApiSyncable

  validates :canvas_account_id, uniqueness: true, presence: true

  api_syncable({
    name: :name,
    status: :status,
    canvas_parent_id: :canvas_parent_id,
  }, -> (api) { api.account(canvas_account_id) })
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
canvas_sync-0.9.1 lib/canvas_sync/generators/templates/models/account.rb
canvas_sync-0.9.0 lib/canvas_sync/generators/templates/models/account.rb
canvas_sync-0.8.4 lib/canvas_sync/generators/templates/models/account.rb
canvas_sync-0.8.3 lib/canvas_sync/generators/templates/models/account.rb
canvas_sync-0.8.2 lib/canvas_sync/generators/templates/models/account.rb