From 9545e2e46e9b8d323862537ac9d5b8d60bb334f8 Mon Sep 17 00:00:00 2001 From: Neil Lalonde Date: Fri, 21 Feb 2014 12:24:45 -0500 Subject: [PATCH] FIX: broken 404 page. don't bother showing current_usre stuff --- app/controllers/application_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb index f6d84f0fdd1..494df9ba3c8 100644 --- a/app/controllers/application_controller.rb +++ b/app/controllers/application_controller.rb @@ -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