Sha256: 3afc735ae27939a13f8ce5ff86780034e7a197998836760b769c770b28c058b7
Contents?: true
Size: 835 Bytes
Versions: 10
Compression:
Stored size: 835 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 def notifiable_path(target_type, key = nil) "dummy_path" end 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 def notifiable_path(target_type, key = nil) "dummy_path" end end end
Version data entries
10 entries across 10 versions & 1 rubygems