Sha256: 595843a5ca6b227948d99ea5fbd9537884886f714e7c63a9f0eb1e1615caf7ef

Contents?: true

Size: 491 Bytes

Versions: 4

Compression:

Stored size: 491 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 Account < ApplicationRecord
  include CanvasSync::ApiSyncable

  validates :canvas_id, uniqueness: true, presence: true

  api_syncable({
    name: :name,
    workflow_state: :workflow_state,
    canvas_parent_account_id: :parent_account_id,
  }, -> (api) { api.account(canvas_id) })
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
canvas_sync-0.10.6 spec/dummy/app/models/account.rb
canvas_sync-0.10.5 spec/dummy/app/models/account.rb
canvas_sync-0.10.4 spec/dummy/app/models/account.rb
canvas_sync-0.10.3 spec/dummy/app/models/account.rb