aboutsummaryrefslogtreecommitdiffstats
path: root/lib/action_mailbox/mail_ext.rb
diff options
context:
space:
mode:
authorDavid Heinemeier Hansson <david@loudthinking.com>2018-11-05 16:36:21 -0800
committerDavid Heinemeier Hansson <david@loudthinking.com>2018-11-05 16:36:21 -0800
commit874446cd72f9edac60deb8dcd91cf2f019b5347c (patch)
tree6f91b3f33f8e557e46b0986f1275a30506bc1832 /lib/action_mailbox/mail_ext.rb
parent152a442b1902050265ddcef56f5506b3bfbb12e4 (diff)
downloadrails-874446cd72f9edac60deb8dcd91cf2f019b5347c.tar.gz
rails-874446cd72f9edac60deb8dcd91cf2f019b5347c.tar.bz2
rails-874446cd72f9edac60deb8dcd91cf2f019b5347c.zip
Extract Mail-bound methods into mail_ext for future upstream work
Diffstat (limited to 'lib/action_mailbox/mail_ext.rb')
-rw-r--r--lib/action_mailbox/mail_ext.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/action_mailbox/mail_ext.rb b/lib/action_mailbox/mail_ext.rb
new file mode 100644
index 0000000000..abdaae4f9e
--- /dev/null
+++ b/lib/action_mailbox/mail_ext.rb
@@ -0,0 +1,4 @@
+require "mail"
+
+# The hope is to upstream most of these basic additions to the Mail gem's Mail object. But until then, here they lay!
+Dir["#{File.expand_path(File.dirname(__FILE__))}/mail_ext/*"].each { |path| require "action_mailbox/mail_ext/#{File.basename(path)}" }