Merge pull request #4337 from Growstuff/recursive-fallback

More recursive companions
This commit is contained in:
Daniel O'Connor authored and GitHub committed 2025-11-29 19:39:31 +10:30
commit 313e240eb9
1 file changed
+1 -1
+1 -1
View File
@@ -162,7 +162,7 @@ class Crop < ApplicationRecord
def all_companions
return companions unless parent
(companions + parent.companions).uniq
(companions + parent.all_companions).uniq
end
before_destroy :destroy_reverse_companionships