We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
rails/activesupport/lib/active_support/core_ext/enumerable.rb
Line 160 in e53acfd
2.5.1 :001 > [].sum => 0 2.5.1 :002 > RUBY_VERSION => "2.5.1"
2.5.1 :021 > [].sum Traceback (most recent call last): 1: from (irb):21 ArgumentError (wrong number of arguments (given 1, expected 0)) 2.5.1 :022 > Rails.version => "5.1.4" 2.5.1 :023 >
The reason is that the default arg to the extended sum method is nil and not 0.
sum
The text was updated successfully, but these errors were encountered:
Variant of #24796
Sorry, something went wrong.
No branches or pull requests
rails/activesupport/lib/active_support/core_ext/enumerable.rb
Line 160 in e53acfd
The reason is that the default arg to the extended
sum
method is nil and not 0.The text was updated successfully, but these errors were encountered: