search for: ordertransaction

Displaying 1 result from an estimated 1 matches for "ordertransaction".

2008 Aug 24
2
config.after_initialize and development mode
Hi, 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. config.after_initialize do ActiveMerchant::Billing::Base.mode = :test OrderTransaction.gateway = ActiveMerchant::Billing::PaypalGateway.new(...) end I''m assuming this is is due to the model reloading after each request in development mode, right? When that happens OrderTransaction.gateway is nilified. Is there a way to prevent a model from being reloaded in development mod...