Sha256: 320467a9176f277350fe69d90b163e09d98914fae8c6d4df74c8b1042d5c7246

Contents?: true

Size: 683 Bytes

Versions: 7

Compression:

Stored size: 683 Bytes

Contents

unless ENV['AN_TEST_DB'] == 'mongodb'
  class Dummy::DummyNotifiableTarget < ActiveRecord::Base
    self.table_name = :users
    acts_as_target
    acts_as_notifiable :dummy_notifiable_targets, targets: -> (n, key) { Dummy::DummyNotifiableTarget.all }, tracked: true
  end
else
  class Dummy::DummyNotifiableTarget
    include Mongoid::Document
    include Mongoid::Timestamps
    include GlobalID::Identification
    field :email, type: String, default: ""
    field :name,  type: String

    include ActivityNotification::Models
    acts_as_target
    acts_as_notifiable :dummy_notifiable_targets, targets: -> (n, key) { Dummy::DummyNotifiableTarget.all }, tracked: true
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
activity_notification-2.1.3 spec/rails_app/app/models/dummy/dummy_notifiable_target.rb
activity_notification-2.1.2 spec/rails_app/app/models/dummy/dummy_notifiable_target.rb
activity_notification-2.1.1 spec/rails_app/app/models/dummy/dummy_notifiable_target.rb
activity_notification-2.1.0 spec/rails_app/app/models/dummy/dummy_notifiable_target.rb
activity_notification-2.0.0 spec/rails_app/app/models/dummy/dummy_notifiable_target.rb
activity_notification-1.7.1 spec/rails_app/app/models/dummy/dummy_notifiable_target.rb
activity_notification-1.7.0 spec/rails_app/app/models/dummy/dummy_notifiable_target.rb