We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hello,
I'm interested in using the before destroy and after destroy hooks on issues. I've tried addig my custom script, but it won't be called.
Long story short: I want to call an endpoint on a different application when an issue gets deleted. My example code looks something like this:
require 'uri' require 'net/http' require 'json' data = { deleted_id: @issue.id } Net::HTTP.post(URI.parse('...'), data.to_json)
require 'uri'
require 'net/http'
require 'json'
data = { deleted_id: @issue.id }
Net::HTTP.post(URI.parse('...'), data.to_json)
Would someone please provide a working example for the before and after destroy hooks?
The text was updated successfully, but these errors were encountered:
Add a log message at the beginning of your before and after destroy script and then check your log/production.log file. eg.
Rails.logger.info '>>> My before destroy script'
and then
tail -f log/production.log
Sorry, something went wrong.
No branches or pull requests
Hello,
I'm interested in using the before destroy and after destroy hooks on issues.
I've tried addig my custom script, but it won't be called.
Long story short: I want to call an endpoint on a different application when an issue gets deleted.
My example code looks something like this:
require 'uri'
require 'net/http'
require 'json'
data = { deleted_id: @issue.id }
Net::HTTP.post(URI.parse('...'), data.to_json)
Would someone please provide a working example for the before and after destroy hooks?
The text was updated successfully, but these errors were encountered: