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

corrected the output of maximum in ActiveSupport changelog

This commit is contained in:
alkeshghorpade 2021-03-10 10:57:53 +05:30
parent 7762770805
commit 40770b6878

View file

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