Files
nairobi/app/models
Javi Martín 9841a9b03a Use in_order_of to sort translations by fallback
This method was introduced in Rails 7.0, and thanks to it we can
simplify the code that gets the translations in order.

We tried to use this method to simplify the `Randomizable` concern as
well. However, we found out that, when ordering tens of thousands of
records, the query could take several minutes, so we aren't using it in
this case. Using it for translation fallbacks is OK, since there's a
good chance we're never going to have tens of thousands of available
locales.

Note that automated security tools reported a false positive related to
SQL Injection due to the way we used `LEFT JOIN`, so now we get one less
false positive in these reports.
2024-07-22 17:50:40 +02:00
..
2021-12-30 15:50:02 +01:00
2024-05-17 20:11:16 +02:00
2023-11-22 14:44:24 +01:00
2024-04-02 16:31:10 +02:00
2024-05-09 14:28:32 +02:00
2022-10-18 10:38:59 +02:00