Sha256: 3fcbc8eb52e1bf20f962e1c723a8a953411c9a3dbe6e54a4da6e995aa8cd965a

Contents?: true

Size: 491 Bytes

Versions: 53

Compression:

Stored size: 491 Bytes

Contents

# <%= autogenerated_model_warning %>

class UserObserver < ApplicationRecord
  include CanvasSync::Record
  include CanvasSync::Concerns::ApiSyncable

  canvas_sync_features :defaults

  validates :canvas_id, uniqueness: true, presence: true

  belongs_to :observing_user, primary_key: :canvas_id, foreign_key: :observing_user_id, class_name: 'User', optional: true
  belongs_to :observed_user, primary_key: :canvas_id, foreign_key: :observed_user_id, class_name: 'User', optional: true
end

Version data entries

53 entries across 53 versions & 1 rubygems

Version Path
canvas_sync-0.22.9 lib/canvas_sync/generators/templates/models/user_observer.rb
canvas_sync-0.22.8 lib/canvas_sync/generators/templates/models/user_observer.rb
canvas_sync-0.22.6 lib/canvas_sync/generators/templates/models/user_observer.rb
canvas_sync-0.22.5 lib/canvas_sync/generators/templates/models/user_observer.rb
canvas_sync-0.22.4 lib/canvas_sync/generators/templates/models/user_observer.rb
canvas_sync-0.22.3 lib/canvas_sync/generators/templates/models/user_observer.rb
canvas_sync-0.22.2 lib/canvas_sync/generators/templates/models/user_observer.rb
canvas_sync-0.22.1 lib/canvas_sync/generators/templates/models/user_observer.rb
canvas_sync-0.22.0 lib/canvas_sync/generators/templates/models/user_observer.rb
canvas_sync-0.22.0.beta8 lib/canvas_sync/generators/templates/models/user_observer.rb
canvas_sync-0.22.0.beta7 lib/canvas_sync/generators/templates/models/user_observer.rb
canvas_sync-0.22.0.beta6 lib/canvas_sync/generators/templates/models/user_observer.rb
canvas_sync-0.22.0.beta5 lib/canvas_sync/generators/templates/models/user_observer.rb
canvas_sync-0.22.0.beta4 lib/canvas_sync/generators/templates/models/user_observer.rb
canvas_sync-0.22.0.beta3 lib/canvas_sync/generators/templates/models/user_observer.rb
canvas_sync-0.22.0.beta2 lib/canvas_sync/generators/templates/models/user_observer.rb
canvas_sync-0.22.0.beta1 lib/canvas_sync/generators/templates/models/user_observer.rb
canvas_sync-0.21.1 lib/canvas_sync/generators/templates/models/user_observer.rb
canvas_sync-0.21.1.beta1 lib/canvas_sync/generators/templates/models/user_observer.rb
canvas_sync-0.21.0 lib/canvas_sync/generators/templates/models/user_observer.rb