Improved way how to load/reset collections.
This commit is contained in:
parent
f99c72907c
commit
b87fe1e3ba
1 changed files with 4 additions and 4 deletions
|
@ -87,13 +87,13 @@ 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,
|
||||
:config => config_frontend,
|
||||
:session => user,
|
||||
:collections => collections,
|
||||
:config => config_frontend,
|
||||
}
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue