mirror of
https://github.com/discourse/discourse.git
synced 2025-01-18 21:12:45 +08:00
afdb1ac0a0
With the current implementation, a service step can be written as: ```ruby def my_step(a_default_value: 2) … end ``` That’s a pattern we want to avoid as default values (if needed) should be probably defined in a contract. This patch makes a service raise an exception if a default value is encountered. |
||
---|---|---|
.. | ||
automation | ||
chat | ||
checklist | ||
discourse-details | ||
discourse-lazy-videos | ||
discourse-local-dates | ||
discourse-narrative-bot | ||
discourse-presence | ||
footnote | ||
poll | ||
spoiler-alert | ||
styleguide |