Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 27 lines (22 sloc) 0.8 kb
d2bd71a Finish moving config.frameworks-dependent code to the framework plugin
Carlhuda authored
1 require "action_mailer"
e749424 Rename rails.rb -> rails/all.rb and rails/core.rb -> rails.rb
Carl Lerche authored
2 require "rails"
d2bd71a Finish moving config.frameworks-dependent code to the framework plugin
Carlhuda authored
3
4 module ActionMailer
ae7ada1 Some railties cleanup:
Carl Lerche authored
5 class Railtie < Rails::Railtie
395d664 @josevalim Move application configuration to the application configuration object, ...
josevalim authored
6 config.action_mailer = ActiveSupport::OrderedOptions.new
d2bd71a Finish moving config.frameworks-dependent code to the framework plugin
Carlhuda authored
7
363a752 @paulrosania install ActionController::UrlFor before environment is parsed, to provid...
paulrosania authored
8 initializer "action_mailer.url_for", :before => :load_environment_config do |app|
4aded43 @wycats Replace the placeholder base_hook API with on_load. To specify some code...
wycats authored
9 ActiveSupport.on_load(:action_mailer) { include app.routes.url_helpers }
363a752 @paulrosania install ActionController::UrlFor before environment is parsed, to provid...
paulrosania authored
10 end
11
f0523f7 @sikachu Rename Rails::Subscriber to Rails::LogSubscriber
sikachu authored
12 require "action_mailer/railties/log_subscriber"
395d664 @josevalim Move application configuration to the application configuration object, ...
josevalim authored
13 log_subscriber :action_mailer, ActionMailer::Railties::LogSubscriber.new
2a6bc12 @josevalim Add subscriber to ActionMailer.
josevalim authored
14
3b6f659 @josevalim Add active_model/railtie back to generated boot.rb, add models back to p...
josevalim authored
15 initializer "action_mailer.logger" do
4aded43 @wycats Replace the placeholder base_hook API with on_load. To specify some code...
wycats authored
16 ActiveSupport.on_load(:action_mailer) { self.logger ||= Rails.logger }
3b6f659 @josevalim Add active_model/railtie back to generated boot.rb, add models back to p...
josevalim authored
17 end
18
d2bd71a Finish moving config.frameworks-dependent code to the framework plugin
Carlhuda authored
19 initializer "action_mailer.set_configs" do |app|
4aded43 @wycats Replace the placeholder base_hook API with on_load. To specify some code...
wycats authored
20 ActiveSupport.on_load(:action_mailer) do
39d6f9e @wycats Make many parts of Rails lazy. In order to facilitate this,
wycats authored
21 app.config.action_mailer.each do |k,v|
22 send "#{k}=", v
23 end
d2bd71a Finish moving config.frameworks-dependent code to the framework plugin
Carlhuda authored
24 end
25 end
26 end
363a752 @paulrosania install ActionController::UrlFor before environment is parsed, to provid...
paulrosania authored
27 end
Something went wrong with that request. Please try again.