diff options
author | Łukasz Strzałkowski <lukasz.strzalkowski@gmail.com> | 2013-07-17 15:13:16 +0200 |
---|---|---|
committer | Łukasz Strzałkowski <lukasz.strzalkowski@gmail.com> | 2013-08-25 11:39:11 +0200 |
commit | d1760253f5a5c26b8b1d0f38f4f288d759fbb306 (patch) | |
tree | 935431d0a5b4ebc4a58c898ee0d6d9bfee66de98 /actionview | |
parent | 2a25c4ce6da6ea23ebdf44e7eb2d2441dbea20a1 (diff) | |
download | rails-d1760253f5a5c26b8b1d0f38f4f288d759fbb306.tar.gz rails-d1760253f5a5c26b8b1d0f38f4f288d759fbb306.tar.bz2 rails-d1760253f5a5c26b8b1d0f38f4f288d759fbb306.zip |
Load AV::Layout to AM::Base in railties
Diffstat (limited to 'actionview')
-rw-r--r-- | actionview/lib/action_view/railtie.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/actionview/lib/action_view/railtie.rb b/actionview/lib/action_view/railtie.rb index d05c2e4c67..d9704b59c1 100644 --- a/actionview/lib/action_view/railtie.rb +++ b/actionview/lib/action_view/railtie.rb @@ -41,5 +41,11 @@ module ActionView ActionController::Base.superclass.send(:include, ActionView::Layouts) end end + + initializer "action_view.setup_action_mailer" do |app| + ActiveSupport.on_load(:action_mailer) do + ActionMailer::Base.send(:include, ActionView::Layouts) + end + end end end |