aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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