-
-
Save StaverDmitry/3b7b4c2d718fda3eb1ed0876622506d5 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def self.enquiry_created(enquiry) | |
tries ||= 3 | |
params = default_params(enquiry).merge(enq: 1, pax: 1) | |
Pusher.trigger('enquiry_report', 'data_updated', params) | |
rescue Pusher::HTTPError, HTTPClient::ConnectTimeoutError => e | |
retry if (tries -= 1) > 0 | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment