thoughtbot / griddler

Simplify receiving email in Rails (deprecated)
http://griddler.io/
MIT License
1.38k stars 199 forks source link

Provide example for failing the webhook #282

Closed tilsammans closed 7 years ago

tilsammans commented 7 years ago

There is no documented way to fail a webhook. Reading the code I found that exceptions are appropriate here, so added a small example to the README to make that explicit.

wingrunr21 commented 7 years ago

Hi,

Thanks for the contribution. I think better documentation around the approach would be that Griddler is itself simply a controller action. Therefore, any side effects that cause an error code other than a 200 in other Rails contexts would also apply to Griddler. What do you think?

tilsammans commented 7 years ago

Sure.