Sha256: c9119bf4fee5d447e276c3dcda3e57280a165f1b75c9e79de8218577ca4c6be9

Contents?: true

Size: 216 Bytes

Versions: 8

Compression:

Stored size: 216 Bytes

Contents

# frozen_string_literal: true

class Augmentation
  include Mongoid::Document

  field :name

  embedded_in :player, inverse_of: :augmentation

  after_build do
    self.name = "Infolink (#{player.frags})"
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
mongoid-7.5.4 spec/support/models/augmentation.rb
mongoid-7.5.3 spec/support/models/augmentation.rb
mongoid-7.5.2 spec/support/models/augmentation.rb
mongoid-7.5.1 spec/support/models/augmentation.rb
mongoid-7.4.3 spec/support/models/augmentation.rb
mongoid-7.5.0 spec/support/models/augmentation.rb
mongoid-7.4.1 spec/support/models/augmentation.rb
mongoid-7.4.0 spec/support/models/augmentation.rb