Permalink
Browse files

use LoggedExceptionsController#view_paths if available (edge rails only)

git-svn-id: http://svn.techno-weenie.net/projects/plugins/exception_logger@2731 567b1171-46fb-0310-a4c9-b4bef9110e78
  • Loading branch information...
1 parent 403c915 commit e700502105f93959f8cdfe01cebabb65c05eea60 technoweenie committed Feb 4, 2007
Showing with 5 additions and 1 deletion.
  1. +5 −1 init.rb
View
6 init.rb
@@ -1 +1,5 @@
-LoggedExceptionsController.template_root = File.join(directory, 'views')
+if LoggedExceptionsController.respond_to?(:view_paths)
+ LoggedExceptionsController.view_paths = [File.join(directory, 'views')]
+else
+ LoggedExceptionsController.template_root = File.join(directory, 'views')
+end

0 comments on commit e700502

Please sign in to comment.