Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 26 lines (21 sloc) 0.772 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
3b6f659 @josevalim Add active_model/railtie back to generated boot.rb, add models back to p...
josevalim authored
8 initializer "action_mailer.logger" do
4aded43 @wycats Replace the placeholder base_hook API with on_load. To specify some code...
wycats authored
9 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
10 end
11
d2bd71a Finish moving config.frameworks-dependent code to the framework plugin
Carlhuda authored
12 initializer "action_mailer.set_configs" do |app|
76b6136 @josevalim Clean up AM and AC railties.
josevalim authored
13 paths = app.config.paths
14 options = app.config.action_mailer
631dc61 @dhh Extract assets paths and make them available to Action Mailer as well
dhh authored
15
76b6136 @josevalim Clean up AM and AC railties.
josevalim authored
16 options.assets_dir ||= paths.public.to_a.first
17 options.javascripts_dir ||= paths.public.javascripts.to_a.first
18 options.stylesheets_dir ||= paths.public.stylesheets.to_a.first
631dc61 @dhh Extract assets paths and make them available to Action Mailer as well
dhh authored
19
4aded43 @wycats Replace the placeholder base_hook API with on_load. To specify some code...
wycats authored
20 ActiveSupport.on_load(:action_mailer) do
458f571 @wycats Remove the need for a special action_mailer.url_for initializer that loa...
wycats authored
21 include app.routes.url_helpers
76b6136 @josevalim Clean up AM and AC railties.
josevalim authored
22 options.each { |k,v| send("#{k}=", v) }
d2bd71a Finish moving config.frameworks-dependent code to the framework plugin
Carlhuda authored
23 end
24 end
25 end
363a752 @paulrosania install ActionController::UrlFor before environment is parsed, to provid...
paulrosania authored
26 end
Something went wrong with that request. Please try again.