isaacsanders/omniauth-stripe-connect — pull request #11 by thecurator (2013-07-03 23:04:31+00:00)
Title: Clarify RoR example in README.md

Hi! On my first read through the README.md, I thought I needed to include both the config/initializers/omniauth.rb and the config/initializers/devise.rb code blocks. Doing so seems to result in duplicate oauth calls. Stripe allows the first one but denies the second one, saying that the code has already been used and is now revoked. I spent a bunch of time debugging devise's and OmniAuth's callbacks, only to realize that I should only use the devise initializer.

I thought I should include both initializers because the "Ruby on Rails apps with Devise" section currently says

> ...you only need to add the following line of code...

I understood that to mean that I should add the devise initializer on top of the previous example code, which was an OmniAuth initializer. Anyway, the README.md patch I included may save the next developer some time.

*Thanks @isaacsanders for such an awesome gem!* This is very useful.