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/text_format.rb | |
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/text_format.rb')
-rw-r--r-- | actionmailer/lib/action_mailer/vendor/text_format.rb | 10 |
1 files changed, 10 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' |