RailsApps / rails-stripe-membership-saas

An example Rails 4.2 app with Stripe and the Payola gem for a membership or subscription site.
http://railsapps.github.io/rails-stripe-membership-saas
1.14k stars 232 forks source link

Extract stripe methods to their own model #77

Closed tmock12 closed 9 years ago

tmock12 commented 11 years ago

I extracted the stripe methods to their own class. This reduced the method sizes and made them easier to test. It also reduced the large "update_stripe" method in the user model. That thing had a lot of complexity in it. There's still some more that could probably be extracted but this seems to be a good start? thoughts?

DanielKehoe commented 11 years ago

Looks good to me! I will pull this onboard but will wait until I have time to rewrite the tutorial.

cayblood commented 10 years ago

@DanielKehoe any word on when you plan to update the tutorial?

DanielKehoe commented 10 years ago

@cayblood thanks for your interest. I'm currently writing the tutorials for rails-devise and rails-devise-pundit. Then I will update the rails-prelaunch-signup app before undertaking an update for the rails-stripe-membership-saas app. Each example app and tutorial takes about six weeks to produce. So it will be several months before I update this one.

DanielKehoe commented 9 years ago

There is a new version of the application for Rails 4.2.