Skip to content

Conversation

@FooBarWidget
Copy link
Contributor

When Sinatra::JSON is loaded, payload refers to the wrong JSON constant, resulting in an exception like this:

undefined method `parse' for Sinatra::JSON:Module (NoMethodError)
    /Users/hongli/.rvm/gems/ruby-2.4.4/gems/sinatra-github_webhooks-0.2.0/lib/sinatra/github_webhooks.rb:14:in `payload'

This pull request fixes this by referring to the top-level JSON constant.

When [Sinatra::JSON](http://sinatrarb.com/contrib/json) is loaded, `payload` refers to the wrong JSON costant.
@chrismytton chrismytton merged commit 25955b4 into chrismytton:master Nov 11, 2020
@chrismytton
Copy link
Owner

Thanks @FooBarWidget!

I've published v0.2.1 to RubyGems with this fix in it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants