Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

In 1.9.3 Array uses clone so returns an Array instead of a PartsList

  • Loading branch information...
commit d88fa14c8321f73b740818551d2c501afcb5b153 1 parent 099605c
@mikel authored
Showing with 4 additions and 0 deletions.
  1. +4 −0 lib/mail/parts_list.rb
View
4 lib/mail/parts_list.rb
@@ -26,6 +26,10 @@ def collect!
raise NoMethodError, "#collect! is not defined, please call #collect and create a new PartsList"
end
+ def sort
+ self.class.new(super)
+ end
+
def sort!(order)
sorted = self.sort do |a, b|
# OK, 10000 is arbitrary... if anyone actually wants to explicitly sort 10000 parts of a
Please sign in to comment.
Something went wrong with that request. Please try again.