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 12:10:19 +00:00
2023-01-09 12:10:19 +00:00
2023-01-20 12:52:49 -06:00
2023-02-08 21:40:15 +01:00
2022-04-28 11:51:03 +02:00
2023-01-20 12:52:49 -06:00
2023-01-20 12:52:49 -06:00
2023-01-09 12:10:19 +00:00
2023-01-12 10:04:46 +10:00
2023-02-13 12:39:45 +08:00
2023-01-09 12:10:19 +00:00
2023-01-09 12:10:19 +00:00
2023-02-13 12:39:45 +08:00
2023-01-09 12:10:19 +00:00
2023-02-13 12:39:45 +08:00
2023-02-13 15:34:04 +11:00
2023-01-31 16:53:24 +01:00
2023-01-09 12:10:19 +00:00
2023-01-09 12:10:19 +00:00
2023-01-09 12:10:19 +00:00
2023-02-09 16:24:24 +00:00
2023-01-26 13:26:29 +00:00
2023-01-20 12:52:49 -06:00
2023-02-03 10:02:14 +08:00
2023-01-20 12:52:49 -06:00
2023-01-20 12:52:49 -06:00
2023-01-09 12:10:19 +00:00
2023-01-09 12:10:19 +00:00
2023-01-16 09:08:44 +11:00
2023-01-09 12:10:19 +00:00
2023-01-09 12:10:19 +00:00
2023-01-09 12:10:19 +00:00
2023-01-09 12:10:19 +00:00
2023-01-24 10:42:56 +00:00
2023-02-07 12:24:57 -03:00
2023-02-13 12:39:45 +08:00
2023-01-09 12:10:19 +00:00
2023-02-13 12:39:45 +08:00
2023-01-09 12:10:19 +00:00
2023-02-13 12:39:45 +08:00
2023-01-09 12:10:19 +00:00
2023-01-09 12:10:19 +00:00
2023-01-09 12:10:19 +00:00
2023-01-09 12:10:19 +00:00
2023-01-20 12:52:49 -06:00
2023-01-09 12:10:19 +00:00
2023-01-09 12:10:19 +00:00
2023-01-09 12:10:19 +00:00
2023-01-09 12:10:19 +00:00
2023-01-27 12:28:47 +08:00
2023-01-05 08:43:58 +10:00
2023-01-09 12:10:19 +00:00
2023-01-09 12:10:19 +00:00
2023-01-09 12:10:19 +00:00
2023-01-09 12:10:19 +00:00
2023-01-09 12:10:19 +00:00
2023-01-09 12:10:19 +00:00
2023-01-09 12:10:19 +00:00
2023-02-01 09:55:21 +00:00
2023-01-09 12:10:19 +00:00
2023-01-09 12:10:19 +00:00
2023-02-13 12:39:45 +08:00
2023-01-09 12:10:19 +00:00
2023-01-09 12:10:19 +00:00
2023-01-09 12:10:19 +00:00
2023-01-20 12:52:49 -06:00
2023-01-20 12:52:49 -06:00
2023-01-09 12:10:19 +00:00
2023-01-09 12:10:19 +00:00
2023-01-09 12:10:19 +00:00
2023-01-10 22:38:52 +02:00
2023-01-09 12:10:19 +00:00
2023-01-20 12:52:49 -06:00
2023-01-09 12:10:19 +00:00
2023-01-20 12:52:49 -06:00
2023-01-09 12:10:19 +00:00
2023-01-09 12:10:19 +00:00
2023-01-09 12:10:19 +00:00
2023-02-09 16:24:24 +00:00
2023-01-09 12:10:19 +00:00
2023-01-20 12:52:49 -06:00
2023-01-20 12:52:49 -06:00
2023-01-09 12:10:19 +00:00
2023-01-20 09:50:24 +08:00
2023-01-09 12:10:19 +00:00
2023-01-19 13:59:11 +00:00
2023-01-09 12:10:19 +00:00
2023-01-09 12:10:19 +00:00
2022-04-05 19:29:58 +02:00
2023-01-25 15:19:11 -05:00
2023-01-09 12:10:19 +00:00
2023-01-09 12:10:19 +00:00
2023-01-20 12:52:49 -06:00
2023-01-09 12:10:19 +00:00
2023-01-09 12:10:19 +00:00
2023-01-09 12:10:19 +00:00
2023-01-09 12:10:19 +00:00
2023-01-09 12:10:19 +00:00
2023-01-24 14:40:24 +10:00
2023-01-09 12:10:19 +00:00
2023-01-09 12:10:19 +00:00
2023-01-20 12:52:49 -06:00
2023-01-09 12:10:19 +00:00
2023-01-09 12:10:19 +00:00
2023-01-09 12:10:19 +00:00
2023-01-09 12:10:19 +00:00
2023-01-25 18:55:01 +02:00
2023-01-20 12:52:49 -06:00
2023-01-09 12:10:19 +00:00
2023-02-13 12:39:45 +08:00
2023-01-09 12:10:19 +00:00
2023-01-09 12:10:19 +00:00
2023-01-09 12:10:19 +00:00
2023-01-09 12:10:19 +00:00
2023-01-20 12:52:49 -06:00
2023-01-09 12:10:19 +00:00
2023-01-09 12:10:19 +00:00
2023-01-09 12:10:19 +00:00
2023-01-09 12:10:19 +00:00
2023-01-09 12:10:19 +00:00
2023-01-09 12:10:19 +00:00
2023-01-09 12:10:19 +00:00
2023-01-09 12:10:19 +00:00
2023-01-09 12:10:19 +00:00
2023-01-09 12:10:19 +00:00
2023-01-09 12:10:19 +00:00
2023-01-09 12:10:19 +00:00
2023-01-09 12:10:19 +00:00
2023-01-25 18:55:33 +02:00
2023-01-09 12:10:19 +00:00
2023-01-09 12:10:19 +00:00
2023-01-09 12:10:19 +00:00
2023-01-09 12:10:19 +00:00
2023-02-03 10:02:14 +08:00
2023-01-09 12:10:19 +00:00
2023-01-09 12:10:19 +00:00
2023-01-09 12:10:19 +00:00
2023-01-09 12:10:19 +00:00
2023-01-20 12:52:49 -06:00
2023-01-09 12:10:19 +00:00
2023-01-09 12:10:19 +00:00
2023-01-09 12:10:19 +00:00
2023-01-09 12:10:19 +00:00
2023-01-09 12:10:19 +00:00
2023-02-13 12:39:45 +08:00
2023-01-27 16:15:33 +02:00
2023-01-09 12:10:19 +00:00
2023-01-09 12:10:19 +00:00
2023-02-13 12:39:45 +08:00
2023-01-09 12:10:19 +00:00
2023-01-31 12:00:27 +01:00
2023-01-09 12:10:19 +00:00
2023-01-09 12:10:19 +00:00
2023-01-09 12:10:19 +00:00
2023-01-09 12:10:19 +00:00
2023-01-09 12:10:19 +00:00
2023-01-09 12:10:19 +00:00
2023-01-20 12:52:49 -06:00
2023-01-20 12:52:49 -06:00
2023-01-09 12:10:19 +00:00
2023-01-20 12:52:49 -06:00
2023-01-09 12:10:19 +00:00
2023-01-09 12:10:19 +00:00
2023-01-12 09:41:39 +10:00
2023-01-20 12:52:49 -06:00
2023-01-09 12:10:19 +00:00
2023-01-09 12:10:19 +00:00
2023-02-13 12:39:45 +08:00
2023-01-20 12:52:49 -06:00
2023-01-09 12:10:19 +00:00
2023-01-09 12:10:19 +00:00
2023-01-09 12:10:19 +00:00
2023-01-09 12:10:19 +00:00
2023-01-09 12:10:19 +00:00
2023-01-09 12:10:19 +00:00
2023-01-09 12:10:19 +00:00
2023-01-09 12:10:19 +00:00
2023-02-13 09:24:47 +11:00
2023-01-09 12:10:19 +00:00
2023-01-09 12:10:19 +00:00
2023-01-09 12:10:19 +00:00
2023-01-09 12:10:19 +00:00
2023-01-09 12:10:19 +00:00
2023-01-20 12:52:49 -06:00
2023-01-09 12:10:19 +00:00
2023-01-09 12:10:19 +00:00
2023-01-09 12:10:19 +00:00
2023-01-09 12:10:19 +00:00
2023-01-09 12:10:19 +00:00
2023-01-09 12:10:19 +00:00
2023-01-09 12:10:19 +00:00
2023-01-20 12:52:49 -06:00
2023-01-09 12:10:19 +00:00
2023-01-09 12:10:19 +00:00
2023-01-09 12:10:19 +00:00
2023-02-13 12:39:45 +08:00
2023-01-09 12:10:19 +00:00
2023-01-09 12:10:19 +00:00
2023-01-09 12:10:19 +00:00
2023-02-13 12:39:45 +08:00
2023-01-09 12:10:19 +00:00
2023-02-13 12:39:45 +08:00
2023-01-09 12:10:19 +00:00
2023-01-09 12:10:19 +00:00
2023-01-09 12:10:19 +00:00
2023-01-20 12:52:49 -06:00
2023-01-09 12:10:19 +00:00
2023-01-09 12:10:19 +00:00
2023-01-09 12:10:19 +00:00
2023-01-24 10:01:48 +10:00
2023-01-20 12:52:49 -06:00
2023-01-09 12:10:19 +00:00
2023-01-09 12:10:19 +00:00
2023-01-09 12:10:19 +00:00
2023-01-09 12:10:19 +00:00
2023-01-25 13:47:16 -05:00
2023-01-09 12:10:19 +00:00
2023-01-09 12:10:19 +00:00