mirror of
https://gh.wpcy.net/https://github.com/discourse/discourse.git
synced 2026-05-21 16:06:12 +08:00
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 ``` |
||
|---|---|---|
| .. | ||
| action_base.rb | ||
| base.rb | ||
| contract_base.rb | ||
| options_base.rb | ||
| policy_base.rb | ||
| runner.rb | ||
| steps_inspector.rb | ||