Javi Martín
1898bdec56
Remove redundant conditions in content blocks controller
...
In the case of the `edit` action, we're using
`load_and_authorize_resource`, which will always return a
`SiteCustomization::ContentBlock`. In the case of
`edit_heading_content_block`, we're using `Budget::ContentBlock.find`,
which always returns a `Budget::ContentBlock` (or raises an exception).
So, in both cases, the condition to assign `@selected_content_block` can
be removed.
2024-06-05 16:10:56 +02:00
..
2024-05-09 14:28:32 +02:00
2023-08-18 14:56:16 +02:00
2022-04-07 19:35:40 +02:00
2024-04-02 16:31:10 +02:00
2023-09-07 19:14:03 +02:00
2024-04-17 16:44:10 +02:00
2024-06-05 16:10:56 +02:00
2022-04-07 19:35:40 +02:00
2022-04-07 19:35:40 +02:00
2022-04-07 19:35:40 +02:00
2023-08-18 14:56:16 +02:00
2021-10-25 18:01:47 +02:00
2021-10-25 18:01:47 +02:00
2023-11-20 14:22:12 +01:00
2021-10-25 18:01:47 +02:00
2023-08-18 14:56:16 +02:00
2021-12-20 15:07:43 +01:00
2023-11-20 14:22:12 +01:00
2022-08-23 14:30:38 +02:00
2022-08-23 14:30:38 +02:00
2022-08-23 14:30:38 +02:00
2022-08-23 14:30:38 +02:00
2022-08-23 14:30:38 +02:00
2022-08-23 14:30:38 +02:00
2023-08-18 14:56:16 +02:00
2021-08-16 16:31:04 +02:00
2021-09-03 11:49:53 +02:00
2022-04-07 19:35:40 +02:00
2022-04-07 19:35:40 +02:00
2021-09-03 11:49:53 +02:00
2022-04-07 19:35:40 +02:00
2022-04-07 19:35:40 +02:00
2022-04-07 19:35:40 +02:00
2024-01-25 18:29:38 +01:00
2023-11-20 14:22:12 +01:00
2024-05-09 14:28:32 +02:00
2023-08-18 14:56:16 +02:00
2022-06-13 17:39:53 +02:00
2022-12-29 15:43:16 +01:00
2023-11-20 14:22:12 +01:00
2022-04-07 19:35:40 +02:00
2023-08-18 14:56:16 +02:00