From e37dceb05e564b4d90b75a8c3eacff90b8ad3d14 Mon Sep 17 00:00:00 2001 From: Seb Bacon Date: Tue, 15 May 2012 09:30:02 +0100 Subject: Allow themes to effect the design of error pages --- app/controllers/application_controller.rb | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'app/controllers/application_controller.rb') diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb index 0d0cca3e4..e354b64a4 100644 --- a/app/controllers/application_controller.rb +++ b/app/controllers/application_controller.rb @@ -120,6 +120,13 @@ class ApplicationController < ActionController::Base def rescue_action_in_public(exception) # Make sure expiry time for session is set (before_filters are # otherwise missed by this override) + begin + set_view_paths + rescue NameError => e + if !(e.message =~ /undefined local variable or method `set_view_paths'/) + raise + end + end session_remember_me case exception when ActiveRecord::RecordNotFound, ActionController::UnknownAction, ActionController::RoutingError -- cgit v1.2.3