instance method
add_engine_view_paths
Ruby on Rails 2.3.18
Since v2.3.18 Last seen in v2.3.18Signature
add_engine_view_paths()
No documentation comment.
Source
# File railties/lib/rails/plugin/loader.rb, line 98
def add_engine_view_paths
# reverse it such that the last engine can overwrite view paths from the first, like with routes
paths = ActionView::PathSet.new(engines.collect(&:view_path).reverse)
ActionController::Base.view_paths.concat(paths)
ActionMailer::Base.view_paths.concat(paths) if configuration.frameworks.include?(:action_mailer)
end
Defined in railties/lib/rails/plugin/loader.rb line 98
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in Rails::Plugin::Loader