1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Merge pull request #41648 from alkesh26/fixed-incorrect-changelog-output

[ci skip] corrected the output of maximum in ActiveSupport changelog
This commit is contained in:
Ryuta Kamizono 2021-03-10 19:23:50 +09:00 committed by GitHub
commit 55d913d34c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -9,7 +9,7 @@
payments = [Payment.new(5), Payment.new(15), Payment.new(10)]
payments.minimum(:price) # => 5
payments.maximum(:price) # => 20
payments.maximum(:price) # => 15
```
This also allows passing enumerables to `fresh_when` and `stale?` in Action Controller.