From 4400144c4133c6ccf271e4208df745ed467393b4 Mon Sep 17 00:00:00 2001 From: Martin Edenhofer Date: Sun, 22 Jun 2014 09:15:49 +0200 Subject: [PATCH] Added attribute of relation which can't be done a lookup. --- app/assets/javascripts/app/models/_application_model.js.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/assets/javascripts/app/models/_application_model.js.coffee b/app/assets/javascripts/app/models/_application_model.js.coffee index 07e6cec81..89ea69074 100644 --- a/app/assets/javascripts/app/models/_application_model.js.coffee +++ b/app/assets/javascripts/app/models/_application_model.js.coffee @@ -301,7 +301,7 @@ class App.Model extends Spine.Model item = App[ attribute.relation ]._fillUp(item) data[ withoutId ] = item else - console.log("ERROR, cant find App.#{ attribute.relation }.find(#{ data[attribute.name] }) for '#{ data.constructor.className }' #{ data.displayName() }") + console.log("ERROR, cant find #{ attribute.name } App.#{ attribute.relation }.find(#{ data[attribute.name] }) for '#{ data.constructor.className }' #{ data.displayName() }") data @search: (params) ->