I'm using activemerchant and setting up a class variable using
config.after_initialize. It works great for the first request, but
then the variable is nil.
ActiveMerchant::Billing::Base.mode = :test
I'm assuming this is is due to the model reloading after each request
in development mode, right? When that happens OrderTransaction.gateway
Is there a way to prevent a model from being reloaded in development
mode, and is this the best way to handle the problem.