error was on incorrect property

This commit is contained in:
Tom Carchrae 2019-01-14 10:35:01 -08:00 committed by Patrick Gansterer
parent c56a936aea
commit a66a44bdcf
1 changed files with 1 additions and 1 deletions

View File

@ -129,7 +129,7 @@ class Supplier < ActiveRecord::Base
# make sure the shared_sync_method is allowed for the shared supplier
def valid_shared_sync_method
if shared_supplier && !shared_supplier.shared_sync_methods.include?(shared_sync_method)
errors.add :name, :included
errors.add :shared_sync_method, :included
end
end