error was on incorrect property
This commit is contained in:
parent
c56a936aea
commit
a66a44bdcf
1 changed files with 1 additions and 1 deletions
|
@ -129,7 +129,7 @@ class Supplier < ActiveRecord::Base
|
||||||
# make sure the shared_sync_method is allowed for the shared supplier
|
# make sure the shared_sync_method is allowed for the shared supplier
|
||||||
def valid_shared_sync_method
|
def valid_shared_sync_method
|
||||||
if shared_supplier && !shared_supplier.shared_sync_methods.include?(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
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue