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-02-09 11:36:27 -08:00
2023-01-09 14:14:59 +00:00
2023-01-09 14:14:59 +00:00
2023-02-01 07:18: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-02-13 12:39:45 +08:00
2023-01-09 14:14:59 +00:00
2023-01-31 01:41:25 +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-02-13 12:39:45 +08:00
2023-01-09 14:14:59 +00:00
2023-01-25 13:50:21 +02:00
2023-01-09 14:14:59 +00:00
2023-01-09 14:14:59 +00:00
2023-01-20 12:52:49 -06:00
2023-01-09 14:14:59 +00:00
2023-01-09 14:14:59 +00:00
2023-01-20 12:52:49 -06:00
2023-01-09 14:14:59 +00:00
2023-01-09 14:14:59 +00:00
2023-01-11 16:43:18 +08:00
2022-12-08 13:47:59 +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-02-13 12:39:45 +08:00
2023-02-03 16:48:05 -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-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
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-02 10:19:51 +08:00
2023-01-09 14:14:59 +00:00
2023-01-09 14:14:59 +00:00
2023-01-27 10:05:27 -08:00
2023-01-20 12:52:49 -06:00
2023-02-08 11:45:34 +11: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-23 14:48:33 +10:00
2023-01-17 12:49:42 +00:00
2023-01-09 14:14:59 +00:00
2023-02-13 12:39:45 +08:00
2023-02-13 09:24:47 +11:00
2023-01-09 14:14:59 +00:00
2023-01-31 14:38:42 +01:00
2023-02-13 12:39:45 +08:00
2023-02-13 12:39:45 +08:00
2023-01-24 15:41:01 +01:00
2023-01-09 14:14:59 +00:00
2023-01-09 14:14:59 +00:00
2023-01-20 12:52:49 -06:00
2023-02-13 12:39:45 +08:00
2022-11-24 19:16:28 +04:00
2023-02-01 07:18:45 +08:00
2023-01-09 14:14:59 +00:00
2023-01-16 19:16:17 +02:00
2023-01-09 14:14:59 +00:00