##// END OF EJS Templates
Slight change to engines to let plugins override views....
Jean-Philippe Lang -
r1722:361138e16d9e
parent child
Show More
@@ -88,7 +88,7 module Engines
88 def add_plugin_view_paths
88 def add_plugin_view_paths
89 view_path = File.join(directory, 'app', 'views')
89 view_path = File.join(directory, 'app', 'views')
90 if File.exist?(view_path)
90 if File.exist?(view_path)
91 ActionController::Base.view_paths.insert(1, view_path) # push it just underneath the app
91 ActionController::Base.prepend_view_path(view_path) # push it just underneath the app
92 ActionView::TemplateFinder.process_view_paths(view_path)
92 ActionView::TemplateFinder.process_view_paths(view_path)
93 end
93 end
94 end
94 end
General Comments 0
You need to be logged in to leave comments. Login now