Find the weapon associated with a GridWeapon

because associations are hard and dumb
This commit is contained in:
Justin Edmund 2020-09-16 23:48:57 -07:00
parent 8655343382
commit 80ca5b8fd0

View file

@ -1,3 +1,7 @@
class GridWeapon < ApplicationRecord
belongs_to :party
def weapon
Weapon.find(self.weapon_id)
end
end