mirror of
https://github.com/Growstuff/growstuff.git
synced 2026-10-05 20:44:33 -04:00
Merge pull request #4337 from Growstuff/recursive-fallback
More recursive companions
This commit is contained in:
1 file changed
+1
-1
+1
-1
@@ -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
|
||||
|
||||
Reference in new issue
Block a user