diff options
Diffstat (limited to 'railties/lib/rails/engine.rb')
-rw-r--r-- | railties/lib/rails/engine.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/railties/lib/rails/engine.rb b/railties/lib/rails/engine.rb index 479d753614..b6ac48768d 100644 --- a/railties/lib/rails/engine.rb +++ b/railties/lib/rails/engine.rb @@ -95,8 +95,8 @@ module Rails initializer :add_view_paths do views = paths.app.views.to_a - ActionController::Base.view_paths.unshift(*views) if defined?(ActionController) - ActionMailer::Base.view_paths.unshift(*views) if defined?(ActionMailer) + ActionController::Base.prepend_view_path(views) if defined?(ActionController) + ActionMailer::Base.prepend_view_path(views) if defined?(ActionMailer) end initializer :add_metals do |app| @@ -132,4 +132,4 @@ module Rails app.config.reload_engines end end -end
\ No newline at end of file +end |