System Hooks: CRUD has done

This commit is contained in:
Valeriy Sizov 2012-07-12 22:10:34 +03:00
parent 65dc68b35c
commit c38578428b
9 changed files with 141 additions and 77 deletions

View file

@ -12,8 +12,6 @@ class WebHook < ActiveRecord::Base
def execute(data)
WebHook.post(url, body: data.to_json, headers: { "Content-Type" => "application/json" })
rescue
# There was a problem calling this web hook, let's forget about it.
end
end
# == Schema Information