Suppress deleted suppliers from SharedSupplier.suppliers

Fixes #546.
This commit is contained in:
JuliusR 2019-06-13 10:41:16 +02:00 committed by wvengen
parent 5bf7f41005
commit 00458f79ab

View file

@ -5,7 +5,7 @@ class SharedSupplier < ApplicationRecord
# set correct table_name in external DB
self.table_name = 'suppliers'
has_many :suppliers
has_many :suppliers, -> { undeleted }
has_many :shared_articles, :foreign_key => :supplier_id