Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/mailgun/webhooks/webhooks.rb
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ def info(domain, action)
# Returns a Boolean of whether the webhook was created
def create(domain, action, url = '')
res = @client.post("domains/#{domain}/webhooks", id: action, url: url)
res.to_h['webhook']['url'] == url && res.to_h[message] == 'Webhook has been created'
res.to_h['webhook']['url'] == url && res.to_h['message'] == 'Webhook has been created'
end
alias_method :add, :create
alias_method :add_webhook, :create
Expand Down