aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHenare Degan <henare.degan@gmail.com>2013-02-26 16:07:46 +1100
committerHenare Degan <henare.degan@gmail.com>2013-03-03 13:47:16 +1100
commit930619d4cf3a779abaf28e4cfa9d287e552bdc05 (patch)
treeadd0e0dd4117569b0eb200bbe09e354dfd843ae5
parent7940a6c126d1e328b428a414f24887287097f2fc (diff)
Revert "Update this to match the older version of the mail gem we're using"
This reverts commit b9a2d996408c1ef703aa78311f8c2a0f6e0d7afc.
-rw-r--r--lib/mail_handler/backends/mail_extensions.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/mail_handler/backends/mail_extensions.rb b/lib/mail_handler/backends/mail_extensions.rb
index c9f16e361..34ced7319 100644
--- a/lib/mail_handler/backends/mail_extensions.rb
+++ b/lib/mail_handler/backends/mail_extensions.rb
@@ -72,7 +72,8 @@ module Mail
# A patched version of the parameter hash that handles nil values without throwing
# an error.
- class ParameterHash < HashWithIndifferentAccess
+ class ParameterHash < IndifferentHash
+
def encoded
map.sort { |a,b| a.first.to_s <=> b.first.to_s }.map do |key_name, value|
# The replacement of this commented out line is the change