Commit b89db9f1f027a1809f3c5d2a1dbfc1678b65d662
1 parent
f79e308d
Exists in
master
and in
1 other branch
Moved default url options setting to _load_config initializer.
Showing
2 changed files
with
3 additions
and
4 deletions
Show diff stats
config/initializers/_load_config.rb
@@ -15,4 +15,6 @@ else | @@ -15,4 +15,6 @@ else | ||
15 | end | 15 | end |
16 | 16 | ||
17 | # Set config specific values | 17 | # Set config specific values |
18 | -ActionMailer::Base.default_url_options[:host] = Errbit::Config.host | ||
19 | \ No newline at end of file | 18 | \ No newline at end of file |
19 | +(Errbit::Application.config.action_mailer.default_url_options ||= {}).tap do |default| | ||
20 | + default.merge! :host => Errbit::Config.host if default[:host].blank? | ||
21 | +end | ||
20 | \ No newline at end of file | 22 | \ No newline at end of file |
config/initializers/default_url_options.rb