From 80ca5b8fd0a1f108a794bf94d1e510117c9929f9 Mon Sep 17 00:00:00 2001 From: Justin Edmund Date: Wed, 16 Sep 2020 23:48:57 -0700 Subject: [PATCH] Find the weapon associated with a GridWeapon because associations are hard and dumb --- app/models/grid_weapon.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/models/grid_weapon.rb b/app/models/grid_weapon.rb index 943829a..acef6ce 100644 --- a/app/models/grid_weapon.rb +++ b/app/models/grid_weapon.rb @@ -1,3 +1,7 @@ class GridWeapon < ApplicationRecord belongs_to :party + + def weapon + Weapon.find(self.weapon_id) + end end