Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 28 lines (22 sloc) 0.822 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 objec…
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 t…
josevalim authored
8 initializer "action_mailer.logger" do
4aded43 @wycats Replace the placeholder base_hook API with on_load. To specify some c…
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 t…
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 c…
wycats authored
20 ActiveSupport.on_load(:action_mailer) do
458f571 @wycats Remove the need for a special action_mailer.url_for initializer that …
wycats authored
21 include app.routes.url_helpers
8fdeff0 @drogus mounted helpers should be included in ActionMailer
drogus authored
22 include app.routes.mounted_helpers(:app)
76b6136 @josevalim Clean up AM and AC railties.
josevalim authored
23 options.each { |k,v| send("#{k}=", v) }
d2bd71a Finish moving config.frameworks-dependent code to the framework plugin
Carlhuda authored
24 end
25 end
26 end
8fdeff0 @drogus mounted helpers should be included in ActionMailer
drogus authored
27 end
Something went wrong with that request. Please try again.