rfunduk / rails-stripe-connect-example

Example app of various bits and pieces needed to build a Stripe Connect app with Ruby on Rails.
MIT License
115 stars 38 forks source link

Where does RestClient come from? #12

Closed takichin closed 7 years ago

takichin commented 7 years ago

Hi rfunduk, thank you for your example.

I want to know that where "RestClient" is coming from in the below code.

gem "oauth2"??

rails-stripe-connect-example/app/services/stripe_oauth.rb

...
response = RestClient.get url
      # If the request was successful, then we're all good to return
      # this URL.
...
rfunduk commented 7 years ago

No worries I hope you find it useful!

rest-client is a dependency of stripe

https://github.com/rfunduk/rails-stripe-connect-example/blob/master/Gemfile.lock#L142-L144

It might have been a good idea to explicitly make it a dependency in Gemfile, I'll give you that :)