1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/activesupport/lib
Asherah Connor 2e14c53fc6
Add Enumerable#sole (#40914)
* Add `Enumerable#sole`, from `ActiveRecord::FinderMethods#sole`

* distinguish single-item Enumerable and two-item with nil last

Add a test for same.

* add symmetry, against rubocop's wishes
2021-04-19 11:26:34 +02:00
..
active_support Add Enumerable#sole (#40914) 2021-04-19 11:26:34 +02:00
active_support.rb Disable parallel testing when running individual files 2021-03-18 02:06:42 -05:00