lib/yext/api/concerns/account_child.rb in yext-api-0.1.4 vs lib/yext/api/concerns/account_child.rb in yext-api-0.1.5

- old
+ new

@@ -27,11 +27,11 @@ def ensure_relation(klass) [Yext::Api::KnowledgeApi::AccountSettings::Account, Yext::Api::AdministrativeApi::Account].each do |account_class| next if account_class.association?(klass) klass_uri = klass.instance_variable_get(:@uri) - helper_warnings(account_class, klass, klass_uri) klass_uri ||= klass.send(:default_uri) + helper_warnings(account_class, klass, klass_uri) add_has_many_relation(account_class, klass, klass_uri) end end