Module: PrependEngineViews::InstanceMethods
- Defined in:
- vendor/plugins/prepend_engine_views/init.rb
Instance Method Summary
-
- (Object) add_engine_view_paths_with_prepend
Patch Rails so engine’s views are prepended to the view_path, thereby letting plugins override application views.
Instance Method Details
- (Object) add_engine_view_paths_with_prepend
Patch Rails so engine’s views are prepended to the view_path, thereby letting plugins override application views
12 13 14 15 16 |
# File 'vendor/plugins/prepend_engine_views/init.rb', line 12 def add_engine_view_paths_with_prepend paths = ActionView::PathSet.new(engines.collect(&:view_path)) ActionController::Base.view_paths.unshift(*paths) ActionMailer::Base.view_paths.unshift(*paths) if configuration.frameworks.include?(:action_mailer) end |