I have an application that works fine with ror 2.3.x. I had a problem upgrading to Rails 3 with serialization.
The code looks like this:
class PaymentTransaction < ActiveRecord::Base
serialize :response
end
The answer is supposed to contain ActiveMerchant :: Billing :: Response. With rails 3 for some reason it is saved as a string.
=> #<PaymentTransaction id: 11, order_id: nil, amount: nil, mode: nil, payment_profile_id: nil, response: "#<ActiveMerchant::Billing::Response:0x1051aec98>", created_at: "2010-11-07 04:06:03", updated_at: "2010-11-07 04:24:58", result: "pending", payee: nil, login_id: nil, transaction_key: nil>
I had no notes on serialization on other blogs talking about the update. Any thoughts?
source
share