FIX: broken 404 page. don't bother showing current_usre stuff

This commit is contained in:
Neil Lalonde 2014-02-21 12:24:45 -05:00
parent 7562697834
commit 9545e2e46e

View File

@ -108,7 +108,7 @@ class ApplicationController < ActionController::Base
# from the above rescue_from blocks will fail because that isn't valid json.
render status: error, layout: false, text: (error == 404) ? build_not_found_page(error) : message
else
render text: build_not_found_page(error, current_user ? 'application' : 'no_js')
render text: build_not_found_page(error, 'no_js')
end
end