Ted Johansson
25a226279a
DEV: Replace #pluck_first freedom patch with AR #pick in core ( #19893 )
...
The #pluck_first freedom patch, first introduced by @danielwaterworth has served us well, and is used widely throughout both core and plugins. It seems to have been a common enough use case that Rails 6 introduced it's own method #pick with the exact same implementation. This allows us to retire the freedom patch and switch over to the built-in ActiveRecord method.
There is no replacement for #pluck_first!, but a quick search shows we are using this in a very limited capacity, and in some cases incorrectly (by assuming a nil return rather than an exception), which can quite easily be replaced with #pick plus some extra handling.
2023-02-13 12:39:45 +08:00
..
2023-01-09 14:14:59 +00:00
2023-01-09 14:14:59 +00:00
2023-01-09 14:14:59 +00:00
2023-01-09 14:14:59 +00:00
2023-01-09 14:14:59 +00:00
2023-01-09 14:14:59 +00:00
2023-01-09 14:14:59 +00:00
2023-01-09 14:14:59 +00:00
2021-01-19 13:30:58 +10:00
2021-01-19 13:30:58 +10:00
2023-01-09 14:14:59 +00:00
2023-01-09 14:14:59 +00:00
2023-01-09 14:14:59 +00:00
2023-01-09 14:14:59 +00:00
2023-01-09 14:14:59 +00:00
2023-01-09 14:14:59 +00:00
2023-01-09 14:14:59 +00:00
2023-01-09 14:14:59 +00:00
2023-01-09 14:14:59 +00:00
2023-01-09 14:14:59 +00:00
2023-01-09 14:14:59 +00:00
2023-01-09 14:14:59 +00:00
2023-01-09 14:14:59 +00:00
2023-01-09 14:14:59 +00:00
2023-01-09 14:14:59 +00:00
2023-01-09 14:14:59 +00:00
2023-01-09 14:14:59 +00:00
2023-01-09 14:14:59 +00:00
2023-01-09 14:14:59 +00:00
2023-01-09 14:14:59 +00:00
2023-01-09 14:14:59 +00:00
2023-01-09 14:14:59 +00:00
2023-01-09 14:14:59 +00:00
2020-12-01 09:30:53 +08:00
2023-01-09 14:14:59 +00:00
2023-01-09 14:14:59 +00:00
2023-01-09 14:14:59 +00:00
2021-07-15 05:53:26 +03:00
2023-01-09 14:14:59 +00:00
2023-01-09 14:14:59 +00:00
2023-01-09 14:14:59 +00:00
2023-01-09 14:14:59 +00:00
2023-01-09 14:14:59 +00:00
2023-01-25 15:19:11 -05:00
2023-01-09 14:14:59 +00:00
2023-01-09 14:14:59 +00:00
2023-01-09 14:14:59 +00:00
2023-01-09 14:14:59 +00:00
2023-01-09 14:14:59 +00:00
2023-01-09 14:14:59 +00:00
2023-01-09 14:14:59 +00:00
2023-01-09 14:14:59 +00:00
2023-01-09 14:14:59 +00:00
2021-01-19 13:30:58 +10:00
2023-01-09 14:14:59 +00:00
2023-01-09 14:14:59 +00:00
2023-01-09 14:14:59 +00:00
2019-10-02 14:01:53 +10:00
2019-11-28 07:32:17 +10:00
2023-01-09 14:14:59 +00:00
2023-01-09 14:14:59 +00:00
2023-01-09 14:14:59 +00:00
2023-01-09 14:14:59 +00:00
2023-01-09 14:14:59 +00:00
2023-01-09 14:14:59 +00:00
2023-01-09 14:14:59 +00:00
2023-01-09 14:14:59 +00:00
2022-05-23 10:07:15 +10:00
2023-01-09 14:14:59 +00:00
2023-01-09 14:14:59 +00:00
2021-01-19 13:30:58 +10:00
2023-01-09 14:14:59 +00:00
2023-01-09 14:14:59 +00:00
2023-01-09 14:14:59 +00:00
2023-01-09 14:14:59 +00:00
2023-01-09 14:14:59 +00:00
2023-01-09 14:14:59 +00:00
2023-01-09 14:14:59 +00:00
2023-01-09 14:14:59 +00:00
2023-01-09 14:14:59 +00:00
2023-02-13 12:39:45 +08:00
2023-01-09 14:14:59 +00:00