Find the weapon associated with a GridWeapon
because associations are hard and dumb
This commit is contained in:
parent
8655343382
commit
80ca5b8fd0
1 changed files with 4 additions and 0 deletions
|
|
@ -1,3 +1,7 @@
|
||||||
class GridWeapon < ApplicationRecord
|
class GridWeapon < ApplicationRecord
|
||||||
belongs_to :party
|
belongs_to :party
|
||||||
|
|
||||||
|
def weapon
|
||||||
|
Weapon.find(self.weapon_id)
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue