mirror of
https://github.com/discourse/discourse.git
synced 2025-08-17 18:04:11 +08:00
This is a step towards unifying how reviewable types are defined. In this change, we add a new `ReviewableActionBuilder` concern, which can be included by the various reviewable types to give them a standard helper for adding actions that can be performed on the reviewable. The first feature for this concern takes the `build_action()` helper that some reviewables used, and makes it available to all reviewables. This is done in a backward compatible fashion, so it will work even whilst we transition to the new reviewable UI. |
||
---|---|---|
.. | ||
actions.rb | ||
collection.rb | ||
conversation.rb | ||
editable_fields.rb | ||
perform_result.rb |