Skip to content

Instantly share code, notes, and snippets.

@jrozner
Created September 19, 2016 22:04
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 jrozner/b501f9b60a6309393f230baa0da1dda8 to your computer and use it in GitHub Desktop.
Save jrozner/b501f9b60a6309393f230baa0da1dda8 to your computer and use it in GitHub Desktop.
resp = nil
if defined? ActiveSupport::Notifications
ActiveSupport::Notifications.instrument('prevoty:content', payload: resp) do
resp = @client.bulk_filter(body, @policy_key)
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment