aboutsummaryrefslogtreecommitdiffstats
path: root/app/controllers/application_controller.rb
diff options
context:
space:
mode:
authorSeb Bacon <seb.bacon@gmail.com>2012-05-15 09:30:02 +0100
committerSeb Bacon <seb.bacon@gmail.com>2012-05-15 09:30:02 +0100
commite37dceb05e564b4d90b75a8c3eacff90b8ad3d14 (patch)
treeaf199ed55deb4956c38fe1fa60712fa7bc09e4f1 /app/controllers/application_controller.rb
parent8d78cb8844549dc901cd901371be6ec604fb7f68 (diff)
Allow themes to effect the design of error pages
Diffstat (limited to 'app/controllers/application_controller.rb')
-rw-r--r--app/controllers/application_controller.rb7
1 files changed, 7 insertions, 0 deletions
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