blob: 79931fa48cb320340cdae610892897146bba4c4d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
# frozen_string_literal: true
module Types
class EventActionEnum < BaseEnum
graphql_name 'EventAction'
description 'Event action'
::Event.actions.keys.each do |target_type|
value target_type.upcase, value: target_type, description: "#{target_type.titleize} action"
end
end
end
|