I am using the spreedly gem again rather than my own custom Subscriber.rb model. I figured out how I could tack on extra methods to the Spreedly::Subscriber class. You just create a model/class called Spreedly::Subscriber. This is probably rudimentary knowledge for many, but for me it wasn’t. Sometimes it sucks to have a business background. =)
I needed to add the activate_free_trial method for the mocking portion of the spreedly gem. I did it by creating a model named spreedly_subscriber.rb and added the following code.
Spitfire Sky | github | archives | resume