Sha256: fcf3c2798cdd254a0b798e74d3c071258896c48778804655a2689d09be6d0a39
Contents?: true
Size: 401 Bytes
Versions: 21
Compression:
Stored size: 401 Bytes
Contents
# frozen_string_literal: true class Shield include Mongoid::Document has_and_belongs_to_many :players field :after_find_player field :after_initialize_player field :after_default_player, default: ->{ players.first&._id } after_find do |doc| doc.after_find_player = players.first&._id end after_initialize do |doc| doc.after_initialize_player = players.first&._id end end
Version data entries
21 entries across 21 versions & 1 rubygems