discourse/app/controllers/admin/config
Loïc Guitaut e94707acdf DEV: Drop WithServiceHelper
This patch removes the `with_service` helper from the code base.
Instead, we can pass a block with actions directly to the `.call` method
of a service.

This simplifies how to use services:
- use `.call` without a block to run the service and get its result
  object.
- use `.call` with a block of actions to run the service and execute
  arbitrary code depending on the service outcome.

It also means a service is now “self-contained” and can be used anywhere
without having to include a helper or whatever.
2024-09-05 09:58:20 +02:00
..
about_controller.rb DEV: Drop WithServiceHelper 2024-09-05 09:58:20 +02:00
flags_controller.rb DEV: Drop WithServiceHelper 2024-09-05 09:58:20 +02:00
site_settings_controller.rb DEV: the ability to define setting areas (#28570) 2024-09-03 09:25:45 +10:00