Skip to content

Latest commit

 

History

History
36 lines (28 loc) · 1.41 KB

CONFIGURATION.md

File metadata and controls

36 lines (28 loc) · 1.41 KB

You can configure this gem with an initializer file:

# config/initializers/pagertree_integrations.rb
PagerTree::Integrations.deferred_request_class = "DeferredReq"
PagerTree::Integrations.integration_parent_class = "Integration"
PagerTree::Integrations.outgoing_webhook_delivery_factory_class = "OutgoingWebhookDeliv"

PagerTree::Integrations::Engine.routes.default_url_options[:host] = "app.pagertree.com"
PagerTree::Integrations::Engine.routes.default_url_options[:protocol] = "https"
PagerTree::Integrations::Engine.routes.default_url_options[:port] = nil
...

Copying assets

Make sure to copy the public/**/* folder to you main_app/public/ folder

Global Options

These options are for the core PagerTree integrations model

Integration

  • integration_parent_class - The main app's integration class name

Deferred Request

  • deferred_request_class - The main app's deferred request class name

Outgoing Webhook

  • outgoing_webhook_delivery_parent_class - The main app's outgoing webhook class
  • outgoing_webhook_delivery_factory_class - The desired class to initialize outgoing webhooks as
  • outgoing_webhook_delivery_table_name - The mains app's database table name for outgoing webhook deliveries

Integration Options

These options are specific to each integration.

Email

  • integration_email_v3_domain - The incoming email domain
  • integration_email_v3_inbox - The incoming email inbox