-
- Downloads
Refactor API noteable types constants
This replaces API::Notes::NOTEABLE_TYPES and API::Discussions::NOTEABLE_TYPES with class methods defined in a separate helper modules. This allows EE to extend the list of noteable types, without having to modify the constant in-place. We can't define these methods directly in the API classes, as they would be used before we're able to extend them in EE.
Showing
- lib/api/discussions.rb 1 addition, 3 deletionslib/api/discussions.rb
- lib/api/helpers/discussions_helpers.rb 13 additions, 0 deletionslib/api/helpers/discussions_helpers.rb
- lib/api/helpers/notes_helpers.rb 6 additions, 0 deletionslib/api/helpers/notes_helpers.rb
- lib/api/notes.rb 1 addition, 3 deletionslib/api/notes.rb
lib/api/helpers/discussions_helpers.rb
0 → 100644
Please register or sign in to comment