Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@StaverDmitry
Created February 6, 2018 07:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save StaverDmitry/3b7b4c2d718fda3eb1ed0876622506d5 to your computer and use it in GitHub Desktop.
Save StaverDmitry/3b7b4c2d718fda3eb1ed0876622506d5 to your computer and use it in GitHub Desktop.
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