Sha256: db238c56166c908a0d19d6a810fc8da02b752436166c9828586842a82e6723e2

Contents?: true

Size: 215 Bytes

Versions: 94

Compression:

Stored size: 215 Bytes

Contents

class Doctor < Person
  field :specialty, as: :spec
  has_and_belongs_to_many :users, validate: false, inverse_of: nil

  def specialty=(text)
    users.push(User.new)
    super
  end
end

class Doktor < Person
end

Version data entries

94 entries across 89 versions & 8 rubygems

Version Path
mongoid-7.0.13 spec/app/models/doctor.rb
mongoid-7.0.12 spec/app/models/doctor.rb
mongoid-6.4.8 spec/app/models/doctor.rb
mongoid-7.0.11 spec/app/models/doctor.rb
mongoid-7.0.10 spec/app/models/doctor.rb
mongoid-6.4.7 spec/app/models/doctor.rb
mongoid-6.4.5 spec/app/models/doctor.rb
mongoid-7.0.8 spec/app/models/doctor.rb
mongoid-7.0.7 spec/app/models/doctor.rb
mongoid-7.0.6 spec/app/models/doctor.rb
mongoid-5.4.1 spec/app/models/doctor.rb
mongoid-7.0.5 spec/app/models/doctor.rb
mongoid-7.0.4 spec/app/models/doctor.rb
mongoid-6.4.4 spec/app/models/doctor.rb
mongoid-7.0.3 spec/app/models/doctor.rb
mongoid-6.4.2 spec/app/models/doctor.rb
mongoid-7.0.2 spec/app/models/doctor.rb
mongoid-7.0.1 spec/app/models/doctor.rb
mongoid-6.4.1 spec/app/models/doctor.rb
mongoid-5.4.0 spec/app/models/doctor.rb