summaryrefslogtreecommitdiffstats
path: root/vendor
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2009-02-26 08:59:30 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2009-02-26 08:59:30 +0000
commit46f52d306dc475022c8544772d2bdd21501e115d (patch)
tree8bb70bef3fdd07ef69dcf6f2225e6ecc6ad8d3f3 /vendor
parent21eb3c089d0873c7d9a31a5a376dcedf1bde5207 (diff)
downloadredmine-46f52d306dc475022c8544772d2bdd21501e115d.tar.gz
redmine-46f52d306dc475022c8544772d2bdd21501e115d.zip
Applies r1723 on Engines update to allow view override (#2841).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2525 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'vendor')
-rw-r--r--vendor/plugins/engines/lib/engines/plugin.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/vendor/plugins/engines/lib/engines/plugin.rb b/vendor/plugins/engines/lib/engines/plugin.rb
index 995a0f099..488bcd4bc 100644
--- a/vendor/plugins/engines/lib/engines/plugin.rb
+++ b/vendor/plugins/engines/lib/engines/plugin.rb
@@ -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