Module: API::Helpers::ResourceEventsHelpers

Defined in:
lib/api/helpers/resource_events_helpers.rb

Class Method Summary collapse

Class Method Details

.eventable_typesObject



6
7
8
9
10
11
12
# File 'lib/api/helpers/resource_events_helpers.rb', line 6

def self.eventable_types
  # This is a method instead of a constant, allowing EE to more easily extend it.
  {
    Issue => { feature_category: :team_planning, id_field: 'IID' },
    MergeRequest => { feature_category: :code_review_workflow, id_field: 'IID' }
  }
end