aboutsummaryrefslogtreecommitdiffstats
path: root/actionmailer
diff options
context:
space:
mode:
authorPhilipe Fatio <me@phili.pe>2017-04-22 19:45:51 +0200
committerPhilipe Fatio <me@phili.pe>2017-05-02 07:22:48 +0200
commiteddbb62f94f4fb63bec8fda0f82c0f1597c3af01 (patch)
tree7fed8895cb22c51b58ccc986ba9f0fa7982afd39 /actionmailer
parenta6a93f9ed5af5c84cf35dc03759c0b7d9d880cd2 (diff)
downloadrails-eddbb62f94f4fb63bec8fda0f82c0f1597c3af01.tar.gz
rails-eddbb62f94f4fb63bec8fda0f82c0f1597c3af01.tar.bz2
rails-eddbb62f94f4fb63bec8fda0f82c0f1597c3af01.zip
Add missing require in ActionMailer
Without this, Action Mailer doesn't work like it used to on version 4. The following snippet fails since version 5: > require 'action_mailer' > ActionMailer::Base NameError: uninitialized constant ActiveSupport::Rescuable
Diffstat (limited to 'actionmailer')
-rw-r--r--actionmailer/lib/action_mailer.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/actionmailer/lib/action_mailer.rb b/actionmailer/lib/action_mailer.rb
index 211190560a..8e59f033d0 100644
--- a/actionmailer/lib/action_mailer.rb
+++ b/actionmailer/lib/action_mailer.rb
@@ -25,6 +25,7 @@ require "abstract_controller"
require "action_mailer/version"
# Common Active Support usage in Action Mailer
+require "active_support"
require "active_support/rails"
require "active_support/core_ext/class"
require "active_support/core_ext/module/attr_internal"