Revision 1723
Added by Jean-Philippe Lang almost 17 years ago
trunk/vendor/plugins/engines/lib/engines/plugin.rb | ||
---|---|---|
88 | 88 |
def add_plugin_view_paths |
89 | 89 |
view_path = File.join(directory, 'app', 'views') |
90 | 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 | 92 |
ActionView::TemplateFinder.process_view_paths(view_path) |
93 | 93 |
end |
94 | 94 |
end |
Also available in: Unified diff
Slight change to engines to let plugins override views.