diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2008-08-07 19:59:02 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2008-08-07 19:59:02 +0000 |
commit | 361138e16d9ee28b59990424ca5ed3a778898a3e (patch) | |
tree | 318d653bca208ee190c794f1334500c0c3d99a29 /vendor | |
parent | 2e4e9b88d27942f6f2f60cf731656cfcc023ee39 (diff) | |
download | redmine-361138e16d9ee28b59990424ca5ed3a778898a3e.tar.gz redmine-361138e16d9ee28b59990424ca5ed3a778898a3e.zip |
Slight change to engines to let plugins override views.
git-svn-id: http://redmine.rubyforge.org/svn/trunk@1723 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'vendor')
-rw-r--r-- | vendor/plugins/engines/lib/engines/plugin.rb | 2 |
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 caa58f7cd..66c1903d1 100644 --- a/vendor/plugins/engines/lib/engines/plugin.rb +++ b/vendor/plugins/engines/lib/engines/plugin.rb @@ -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 |