manuca / Spree-Mercado-Pago-payment-method

Repo moved to https://github.com/manuca/spree_mercado_pago
BSD 3-Clause "New" or "Revised" License
18 stars 11 forks source link

Undefined method `m_method' #3

Open aanfuso opened 10 years ago

aanfuso commented 10 years ago

I get this error when returning from "MercadoPago" either because the state of the transaction was rejected, confirmed or pending.

NoMethodError (undefined method `m_method' for #ActiveRecord::Relation:0x007ff73304bca8)

on this line

https://github.com/manuca/Spree-Mercado-Pago-payment-method/blob/master/app/controllers/spree/mercado_pago_controller.rb#L22

I could not find this method anywhere. I do not know what it actually does.

manuca commented 10 years ago

Thanks for reporting.

Can you specify Spree version. I've been trying to catch up as there have been some changes in latest Spree versions, the last time I tested the gem was on the 1.3 branch of Spree.

aanfuso commented 10 years ago

I'm using version 1.3 of spree.