Fixed assets load.

This commit is contained in:
Martin Edenhofer 2013-10-01 18:58:21 +02:00
parent 9af5867b6f
commit 21e6686b7e
2 changed files with 7 additions and 3 deletions

View file

@ -26,7 +26,9 @@ class Index extends App.ControllerContent
)
render: (data) ->
App.Collection.load( type: 'User', data: data.users )
# load collections
App.Event.trigger 'loadAssets', data.assets
# fill users
for session in data.sessions

View file

@ -175,8 +175,10 @@ class SessionsController < ApplicationController
end
}
render :json => {
:sessions => sessions_clean,
User.to_app_model => users,
:sessions => sessions_clean,
:assets => {
User.to_app_model => users,
},
}
end