Do not server models on invalid sessions.

This commit is contained in:
Martin Edenhofer 2016-06-21 23:00:28 +02:00
parent 6f63af9495
commit 6e84792871

View file

@ -78,7 +78,6 @@ class SessionsController < ApplicationController
render json: {
error: 'no valid session',
config: config_frontend,
models: models,
collections: {
Locale.to_app_model => Locale.where(active: true)
},