Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Mention that ActionMailer::Base.default_url_options is now deprecated

  • Loading branch information...
commit 24c0bc52d260db4146525c6720be0f9be2c5fd0f 1 parent 6914d67
@jeroenvandijk jeroenvandijk authored
Showing with 4 additions and 5 deletions.
  1. +4 −5 actionmailer/lib/action_mailer/base.rb
View
9 actionmailer/lib/action_mailer/base.rb
@@ -125,14 +125,13 @@ module ActionMailer #:nodoc:
# make sense to generate relative URLs in email messages.
#
# It is also possible to set a default host that will be used in all mailers by setting the <tt>:host</tt>
- # option in the <tt>ActionMailer::Base.default_url_options</tt> hash as follows:
- #
- # ActionMailer::Base.default_url_options[:host] = "example.com"
- #
- # This can also be set as a configuration option in <tt>config/application.rb</tt>:
+ # option as a configuration option in <tt>config/application.rb</tt>:
#
# config.action_mailer.default_url_options = { :host => "example.com" }
#
+ # Setting <tt>ActionMailer::Base.default_url_options</tt> directly is now deprecated, use the configuration
+ # option mentioned above to set the default host.
+ #
# If you do decide to set a default <tt>:host</tt> for your mailers you will want to use the
# <tt>:only_path => false</tt> option when using <tt>url_for</tt>. This will ensure that absolute URLs are
# generated because the <tt>url_for</tt> view helper will, by default, generate relative URLs when a
Please sign in to comment.
Something went wrong with that request. Please try again.