diff --git a/lib/core_ext/array.rb b/lib/core_ext/array.rb index 00aa9f59c..39d7ad777 100644 --- a/lib/core_ext/array.rb +++ b/lib/core_ext/array.rb @@ -17,7 +17,7 @@ class Array values = self.sort if values.empty? - return [] + return 0 elsif values.size == 1 return values.first elsif p == 100