ZenBucket/ZenBucket-web — comment on commit 78942852621e14b20f808d6686988d71242eaa1e
File: app/assets/javascripts/collections/goals.js.coffee line 7
By saiko-chriskun:

Our current implementation doesn't include /all/ of backbone's features. all we have working frontend-wise is just adding and persisting on refresh, but I used the console to test everything, which includes the initial fetch, persisting, updating existing records, reading existing records, etc. I'm pretty sure it's used to parse the response returned from the read method, or, more specifically, `Goal.all.map { |g| {:goal => g.attributes.merge({:id => g.id})} }`