Files
nairobi/app/models
Javi Martín 722e50a669 Simplify code to find a content block
We're only calling the `block_for` method from one place: the
`content_block` helper, and we're never passing the locale parameter to
that helper, which means we're always calling `block_for` using
`I18n.locale`.

So I'm not sure why we were doing the `locale ||=` assignment, since
`I18n.locale` doesn't return nil.

In any case, since this was added in commit c1de2dced, Ruby has added
support for arguments forwarding, so we can use it here to simplify the
code a little bit.
2024-06-05 16:10:56 +02:00
..
2024-06-05 16:10:56 +02:00
2021-08-16 16:31:04 +02:00
2024-05-17 20:11:16 +02:00
2015-07-15 13:32:13 +02:00
2021-12-30 15:50:02 +01:00
2023-08-30 14:46:35 +02:00
2024-05-17 20:11:16 +02:00
2019-03-27 15:22:14 +01:00
2023-11-22 14:44:24 +01:00
2021-04-13 13:52:18 +02:00
2019-10-23 14:39:31 +02:00
2024-04-02 16:31:10 +02:00
2019-03-14 17:25:43 +01:00
2019-04-29 13:08:43 -05:00
2024-05-17 20:11:16 +02:00
2023-09-07 13:09:11 +02:00
2020-12-02 12:13:02 +01:00
2024-06-05 16:10:56 +02:00
2021-08-16 16:31:04 +02:00
2021-08-16 16:31:04 +02:00
2019-10-25 19:29:12 +02:00
2024-05-09 14:28:32 +02:00
2022-10-18 10:38:59 +02:00
2017-12-15 19:21:02 +01:00
2021-01-12 14:50:37 +01:00