I would like to use the ruby ββStripe library in a Rails application. It uses the Stripe module as its namespace.
I want to use Stripe as a namespace for my ActiveRecord models and rename the library module to something like StripeApi so that, for example, StripeApi::Charge refers to the Stripe library, but Stripe::Charge refers to my ActiveRecord model. Stripe -namespaced (so for example, Stripe::Charge.create(...) creates a database record, rather than just calling API calls).
Is there a good way to do this?
(Of course, I could rename my namespace or try using models with different names, but I find this kind of ugly.)
source share