diff options
author | José Valim <jose.valim@gmail.com> | 2012-08-01 20:54:22 +0200 |
---|---|---|
committer | José Valim <jose.valim@gmail.com> | 2012-08-21 14:47:19 -0300 |
commit | 2801786e1a51b7cf7d7c3fd72b5fc9974f83f435 (patch) | |
tree | 2bc2efda7c5d724ba4d85373879e75d9709355df /actionmailer/lib/action_mailer | |
parent | a1687e48cba2f0447f02248939cde05502562e87 (diff) | |
download | rails-2801786e1a51b7cf7d7c3fd72b5fc9974f83f435.tar.gz rails-2801786e1a51b7cf7d7c3fd72b5fc9974f83f435.tar.bz2 rails-2801786e1a51b7cf7d7c3fd72b5fc9974f83f435.zip |
Get rid of config.preload_frameworks in favor of config.eager_load_namespaces
The new option allows any Ruby namespace to be registered and set
up for eager load. We are effectively exposing the structure existing
in Rails since v3.0 for all developers in order to make their applications
thread-safe and CoW friendly.
Diffstat (limited to 'actionmailer/lib/action_mailer')
-rw-r--r-- | actionmailer/lib/action_mailer/railtie.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/actionmailer/lib/action_mailer/railtie.rb b/actionmailer/lib/action_mailer/railtie.rb index 5c03a29f0f..8679096735 100644 --- a/actionmailer/lib/action_mailer/railtie.rb +++ b/actionmailer/lib/action_mailer/railtie.rb @@ -5,6 +5,7 @@ require "abstract_controller/railties/routes_helpers" module ActionMailer class Railtie < Rails::Railtie config.action_mailer = ActiveSupport::OrderedOptions.new + config.eager_load_namespaces << ActionMailer initializer "action_mailer.logger" do ActiveSupport.on_load(:action_mailer) { self.logger ||= Rails.logger } |