diff options
author | Joshua Peek <josh@joshpeek.com> | 2008-11-23 12:27:25 -0600 |
---|---|---|
committer | Joshua Peek <josh@joshpeek.com> | 2008-11-23 12:27:25 -0600 |
commit | e201fc750bf4b7dff1875b7fcdd47f1686ef2052 (patch) | |
tree | ced60e6ae52de148c8c0a7673dc65a73b03d1c4f /actionmailer/lib/action_mailer/vendor | |
parent | 04d2d043ca9c59ab93522f1d8c0810cf47f05b23 (diff) | |
download | rails-e201fc750bf4b7dff1875b7fcdd47f1686ef2052.tar.gz rails-e201fc750bf4b7dff1875b7fcdd47f1686ef2052.tar.bz2 rails-e201fc750bf4b7dff1875b7fcdd47f1686ef2052.zip |
use autoload instead of explicit requires for ActionMailer
Diffstat (limited to 'actionmailer/lib/action_mailer/vendor')
-rw-r--r-- | actionmailer/lib/action_mailer/vendor/text_format.rb | 10 | ||||
-rw-r--r-- | actionmailer/lib/action_mailer/vendor/tmail.rb | 17 |
2 files changed, 27 insertions, 0 deletions
diff --git a/actionmailer/lib/action_mailer/vendor/text_format.rb b/actionmailer/lib/action_mailer/vendor/text_format.rb new file mode 100644 index 0000000000..c6c8c394d0 --- /dev/null +++ b/actionmailer/lib/action_mailer/vendor/text_format.rb @@ -0,0 +1,10 @@ +# Prefer gems to the bundled libs. +require 'rubygems' + +begin + gem 'text-format', '>= 0.6.3' +rescue Gem::LoadError + $:.unshift "#{File.dirname(__FILE__)}/text-format-0.6.3" +end + +require 'text/format' diff --git a/actionmailer/lib/action_mailer/vendor/tmail.rb b/actionmailer/lib/action_mailer/vendor/tmail.rb new file mode 100644 index 0000000000..51d36cdd0d --- /dev/null +++ b/actionmailer/lib/action_mailer/vendor/tmail.rb @@ -0,0 +1,17 @@ +# Prefer gems to the bundled libs. +require 'rubygems' + +begin + gem 'tmail', '~> 1.2.3' +rescue Gem::LoadError + $:.unshift "#{File.dirname(__FILE__)}/tmail-1.2.3" +end + +module TMail +end + +require 'tmail' + +silence_warnings do + TMail::Encoder.const_set("MAX_LINE_LEN", 200) +end |