mirror of
https://github.com/Growstuff/growstuff.git
synced 2026-03-06 16:08:07 -05:00
Merge pull request #4337 from Growstuff/recursive-fallback
More recursive companions
This commit is contained in:
@@ -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