From 7056649a4be931a315fd4b4ad2be79ed8b9850e4 Mon Sep 17 00:00:00 2001 From: Etienne Massip Date: Mon, 27 Feb 2012 18:42:03 +0000 Subject: 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 --- app/models/mailer.rb | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'app/models') 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: -- cgit v1.2.3