aboutsummaryrefslogtreecommitdiffstats
path: root/actionmailer/lib/action_mailer/vendor/text_format.rb
diff options
context:
space:
mode:
authorJoshua Peek <josh@joshpeek.com>2008-11-23 12:27:25 -0600
committerJoshua Peek <josh@joshpeek.com>2008-11-23 12:27:25 -0600
commite201fc750bf4b7dff1875b7fcdd47f1686ef2052 (patch)
treeced60e6ae52de148c8c0a7673dc65a73b03d1c4f /actionmailer/lib/action_mailer/vendor/text_format.rb
parent04d2d043ca9c59ab93522f1d8c0810cf47f05b23 (diff)
downloadrails-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.rb10
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'