[fixes #391] exception when wrong resource type in URL

This commit is contained in:
Régis Hanol 2013-03-24 22:25:24 +01:00
parent 030ecfaa71
commit 0da8f35659

View file

@ -93,7 +93,7 @@ class ApplicationController < ActionController::Base
# If we are rendering HTML, preload the session data
def preload_json
if request.format.html?
if request.format && request.format.html?
if guardian.current_user
guardian.current_user.sync_notification_channel_position
end