Skip to content
This repository
Browse code

Fixes a typo in initializer.rb producing error: undefined local varia…

…ble or method `view_path'.
  • Loading branch information...
commit 1dab1d380377f1a2a60da43bc22989d55632d246 1 parent 0d5b3e6
Gaspard Bucher gaspard authored josh committed

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. +1 1  railties/lib/initializer.rb
2  railties/lib/initializer.rb
@@ -371,7 +371,7 @@ def load_view_paths
371 371 if configuration.frameworks.include?(:action_view)
372 372 if configuration.cache_classes
373 373 ActionController::Base.view_paths = configuration.view_path if configuration.frameworks.include?(:action_controller)
374   - ActionMailer::Base.template_root = view_path if configuration.frameworks.include?(:action_mailer)
  374 + ActionMailer::Base.template_root = configuration.view_path if configuration.frameworks.include?(:action_mailer)
375 375 end
376 376 end
377 377 end

0 comments on commit 1dab1d3

Please sign in to comment.
Something went wrong with that request. Please try again.