Skip to content
Snippets Groups Projects

Draft: Instance Integrations test of shared module code

Closed George Koltsov requested to merge georgekoltsov/instance-integrations-test into master
30 unresolved threads
Files
5
@@ -7,6 +7,7 @@ module HasWebHook
@@ -7,6 +7,7 @@ module HasWebHook
included do
included do
after_save :update_web_hook!, if: :activated?
after_save :update_web_hook!, if: :activated?
has_one :service_hook, inverse_of: :integration, foreign_key: :integration_id
has_one :service_hook, inverse_of: :integration, foreign_key: :integration_id
 
has_one :service_hook, inverse_of: :instance_integration, foreign_key: :instance_integration_id, class_name: 'Integrations::Instance::Integration'
end
end
# Return the URL to be used for the webhook.
# Return the URL to be used for the webhook.
Loading