Module: Webhooks::Outgoing::EndpointSupport

Extended by:
ActiveSupport::Concern
Includes:
UriFiltering
Included in:
Endpoint
Defined in:
app/models/concerns/webhooks/outgoing/endpoint_support.rb

Instance Method Summary collapse

Methods included from UriFiltering

#_allowed_uri?, #allowed_uri?, #resolve_ip_from_authoritative

Instance Method Details

#creative_conceptsObject



32
33
34
# File 'app/models/concerns/webhooks/outgoing/endpoint_support.rb', line 32

def creative_concepts
  team.scaffolding_absolutely_abstract_creative_concepts
end

#event_typesObject



36
37
38
# File 'app/models/concerns/webhooks/outgoing/endpoint_support.rb', line 36

def event_types
  event_type_ids.map { |id| Webhooks::Outgoing::EventType.find(id) }
end

#touch_parentObject



40
41
42
# File 'app/models/concerns/webhooks/outgoing/endpoint_support.rb', line 40

def touch_parent
  send(BulletTrain::OutgoingWebhooks.parent_association).touch
end

#valid_event_typesObject



28
29
30
# File 'app/models/concerns/webhooks/outgoing/endpoint_support.rb', line 28

def valid_event_types
  Webhooks::Outgoing::EventType.all
end