Sha256: 9d72ff85b5e433f6b67b0f26513a90dedfc6cd622ce35c63cdb98019f7ca0aee
Contents?: true
Size: 388 Bytes
Versions: 39
Compression:
Stored size: 388 Bytes
Contents
class Webhooks::Outgoing::EventType < ApplicationHash self.data = YAML.load_file("#{Rails.root}/config/models/webhooks/outgoing/event_types.yml").map do |topic, events| events.map { |event| (event == "crud") ? ["created", "updated", "deleted"] : event }.flatten.map { |event| {id: "#{topic}.#{event}"} } end.flatten def label_string name end def name id end end
Version data entries
39 entries across 39 versions & 1 rubygems