discourse/lib/service
Loïc Guitaut cdf3ce59ac
DEV: Allow contracts to inherit from another class (#35599)
This change aims to allow contract reusability. Typically when two
services are closely related (like `create`/`update`), a lot of (maybe
even all of them) parameters could be the same.

So instead of having to redefine virtually the same contract twice, with
this change it’s possible to provide a base class for the contract, like
this:
```ruby
params base_class: MyCreationService::Contract
```
2025-10-30 10:05:36 +01:00
..
action_base.rb
base.rb DEV: Allow contracts to inherit from another class (#35599) 2025-10-30 10:05:36 +01:00
contract_base.rb DEV: Remove hash-like access from service contracts 2024-10-29 16:02:51 +01:00
options_base.rb DEV: Provide user input to services using params key 2024-10-25 09:57:59 +02:00
policy_base.rb
runner.rb DEV: Follow-up to the lock step for services 2025-02-06 11:38:15 +01:00
steps_inspector.rb DEV: Add only_if step to DRSF (#35247) 2025-10-08 17:20:22 +02:00