diff options
author | Rick Olson <technoweenie@gmail.com> | 2008-01-11 01:55:20 +0000 |
---|---|---|
committer | Rick Olson <technoweenie@gmail.com> | 2008-01-11 01:55:20 +0000 |
commit | 2dda6391207fc7a7d36536306db36eed33f3af9d (patch) | |
tree | e7998a49416de1db0a3409cf89cdb84aec8b8816 /actionmailer/lib/action_mailer/vendor/tmail-1.1.0/tmail/compat.rb | |
parent | a8eb90fcee1efdc491c9eb030827b46929ea979c (diff) | |
download | rails-2dda6391207fc7a7d36536306db36eed33f3af9d.tar.gz rails-2dda6391207fc7a7d36536306db36eed33f3af9d.tar.bz2 rails-2dda6391207fc7a7d36536306db36eed33f3af9d.zip |
Updated TMail to version 1.2.1 [raasdnil]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8620 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'actionmailer/lib/action_mailer/vendor/tmail-1.1.0/tmail/compat.rb')
-rw-r--r-- | actionmailer/lib/action_mailer/vendor/tmail-1.1.0/tmail/compat.rb | 39 |
1 files changed, 0 insertions, 39 deletions
diff --git a/actionmailer/lib/action_mailer/vendor/tmail-1.1.0/tmail/compat.rb b/actionmailer/lib/action_mailer/vendor/tmail-1.1.0/tmail/compat.rb deleted file mode 100644 index 9d2aa83798..0000000000 --- a/actionmailer/lib/action_mailer/vendor/tmail-1.1.0/tmail/compat.rb +++ /dev/null @@ -1,39 +0,0 @@ -unless Enumerable.method_defined?(:map) - module Enumerable - alias map collect - end -end - -unless Enumerable.method_defined?(:select) - module Enumerable - alias select find_all - end -end - -unless Enumerable.method_defined?(:reject) - module Enumerable - def reject - result = [] - each do |i| - result.push i unless yield(i) - end - result - end - end -end - -unless Enumerable.method_defined?(:sort_by) - module Enumerable - def sort_by - map {|i| [yield(i), i] }.sort.map {|val, i| i } - end - end -end - -unless File.respond_to?(:read) - def File.read(fname) - File.open(fname) {|f| - return f.read - } - end -end |