##// END OF EJS Templates
Fixes MailHandler for ruby1.9....
Jean-Philippe Lang -
r2801:d8ba5c2a069b
parent child
Show More
@@ -81,7 +81,7 class MailHandler < ActionMailer::Base
81 if headers.detect {|h| h.to_s =~ MESSAGE_ID_RE}
81 if headers.detect {|h| h.to_s =~ MESSAGE_ID_RE}
82 klass, object_id = $1, $2.to_i
82 klass, object_id = $1, $2.to_i
83 method_name = "receive_#{klass}_reply"
83 method_name = "receive_#{klass}_reply"
84 if self.class.private_instance_methods.include?(method_name)
84 if self.class.private_instance_methods.collect(&:to_s).include?(method_name)
85 send method_name, object_id
85 send method_name, object_id
86 else
86 else
87 # ignoring it
87 # ignoring it
@@ -120,7 +120,8 class MailHandler < ActionMailer::Base
120 if status && issue.new_statuses_allowed_to(user).include?(status)
120 if status && issue.new_statuses_allowed_to(user).include?(status)
121 issue.status = status
121 issue.status = status
122 end
122 end
123 issue.subject = email.subject.chomp.toutf8
123 issue.subject = email.subject.chomp
124 issue.subject = issue.subject.toutf8 if issue.subject.respond_to?(:toutf8)
124 if issue.subject.blank?
125 if issue.subject.blank?
125 issue.subject = '(no subject)'
126 issue.subject = '(no subject)'
126 end
127 end
General Comments 0
You need to be logged in to leave comments. Login now