]> source.dussan.org Git - redmine.git/commitdiff
Slight change to engines to let plugins override views.
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Thu, 7 Aug 2008 19:59:02 +0000 (19:59 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Thu, 7 Aug 2008 19:59:02 +0000 (19:59 +0000)
git-svn-id: http://redmine.rubyforge.org/svn/trunk@1723 e93f8b46-1217-0410-a6f0-8f06a7374b81

vendor/plugins/engines/lib/engines/plugin.rb

index caa58f7cd46518fac5bceeff365fdb9cc7bcc5d7..66c1903d16bfca796bfa592bd279a04843dd5827 100644 (file)
@@ -88,7 +88,7 @@ module Engines
     def add_plugin_view_paths
       view_path = File.join(directory, 'app', 'views')
       if File.exist?(view_path)
-        ActionController::Base.view_paths.insert(1, view_path) # push it just underneath the app
+        ActionController::Base.prepend_view_path(view_path) # push it just underneath the app
         ActionView::TemplateFinder.process_view_paths(view_path)
       end
     end