aboutsummaryrefslogtreecommitdiffstats
path: root/config/environment.rb
diff options
context:
space:
mode:
authorfrancis <francis>2009-04-07 16:01:55 +0000
committerfrancis <francis>2009-04-07 16:01:55 +0000
commitda1b75d7813f5a3bd892d8f2310ca07c48c56a0e (patch)
tree0a5d10b3303240a6a1847ebeec3bd0bbb33ac12d /config/environment.rb
parent1c780547d30b1a25f829b8e65667c5375b57b001 (diff)
Remove one of the monkey patches
Diffstat (limited to 'config/environment.rb')
-rw-r--r--config/environment.rb12
1 files changed, 0 insertions, 12 deletions
diff --git a/config/environment.rb b/config/environment.rb
index b50cfb6dd..9fecc98f0 100644
--- a/config/environment.rb
+++ b/config/environment.rb
@@ -131,18 +131,6 @@ module TMail
part.sub_header("content-type", "name") ||
part.sub_header("content-disposition", "filename")
end
-
- # Monkeypatch! :)
- # Returns the name of the person a message is from, or nil if there isn't
- # one or if there is only an email address.
- def safe_from
- if self.from and (not self.friendly_from.include?('@'))
- return self.friendly_from
- else
- return nil
- end
- end
-
end
class Address