Improved way how to load/reset collections.

This commit is contained in:
Martin Edenhofer 2013-10-20 14:38:55 +02:00
parent f99c72907c
commit b87fe1e3ba

View file

@ -87,12 +87,12 @@ class SessionsController < ApplicationController
user = User.user_data_full( user_id )
# auto population of default collections
default_collection = SessionHelper::default_collections( User.find(user_id) )
collections = SessionHelper::default_collections( User.find(user_id) )
# return current session
render :json => {
:session => user,
:default_collections => default_collection,
:collections => collections,
:config => config_frontend,
}
end