From a66a44bdcf124bc108c35a1c5a191ef475d2a6c5 Mon Sep 17 00:00:00 2001 From: Tom Carchrae Date: Mon, 14 Jan 2019 10:35:01 -0800 Subject: [PATCH] error was on incorrect property --- app/models/supplier.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/supplier.rb b/app/models/supplier.rb index 2f8d5b7e..708ea1bf 100644 --- a/app/models/supplier.rb +++ b/app/models/supplier.rb @@ -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