diff options
author | Etienne Massip <etienne.massip@gmail.com> | 2012-02-27 18:42:03 +0000 |
---|---|---|
committer | Etienne Massip <etienne.massip@gmail.com> | 2012-02-27 18:42:03 +0000 |
commit | 7056649a4be931a315fd4b4ad2be79ed8b9850e4 (patch) | |
tree | ec65c08fa6a4610982df49f58b3386c90321d1d4 /app/models | |
parent | 81554eae5af19154f75f6d0ccf33c3619b8ae50e (diff) | |
download | redmine-7056649a4be931a315fd4b4ad2be79ed8b9850e4.tar.gz redmine-7056649a4be931a315fd4b4ad2be79ed8b9850e4.zip |
Override @#url_for@ in AM to force generation of absolute links (#10251).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9022 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/models')
-rw-r--r-- | app/models/mailer.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/app/models/mailer.rb b/app/models/mailer.rb index 2502ce2e0..5bb4f7e2c 100644 --- a/app/models/mailer.rb +++ b/app/models/mailer.rb @@ -30,6 +30,11 @@ class Mailer < ActionMailer::Base { :host => h, :protocol => Setting.protocol } end + def url_for(options) + options[:only_path] = false if options.is_a?(Hash) + super options + end + # Builds a tmail object used to email recipients of the added issue. # # Example: |