Sha256: c33ba3613f3465789b70e6c30c457df68dd184bff775f60e3439ea50562b9183
Contents?: true
Size: 490 Bytes
Versions: 16
Compression:
Stored size: 490 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 field :after_find_player field :after_initialize_player field :after_default_player, default: ->{ self.player&._id } after_find do |doc| doc.after_find_player = player&._id end after_initialize do |doc| doc.after_initialize_player = player&._id end end
Version data entries
16 entries across 16 versions & 1 rubygems