]> source.dussan.org Git - redmine.git/commitdiff
Applies r1723 on Engines update to allow view override (#2841).
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Thu, 26 Feb 2009 08:59:30 +0000 (08:59 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Thu, 26 Feb 2009 08:59:30 +0000 (08:59 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2525 e93f8b46-1217-0410-a6f0-8f06a7374b81

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

index 995a0f09937d88ffb2ad975a7c793db314ba9dbb..488bcd4bc5dcd4cbec927ade980776e3633a691c 100644 (file)
@@ -89,7 +89,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
       end
     end