Closed krtschmr closed 8 years ago
Problem is the depedency of state_machine.
simply removing that will keep spree 3.1.0
and rails 4.2.6
stable.
@krtschmr
Obviously state_machine cannot be removed as a dependency from the library. This is a really old and known error in state_machine.
https://github.com/pluginaweek/state_machine/issues/251
You can fix this by adding this code to your project as stated in the issue above.
config/initializers/state_machine_patch.rb
module StateMachine
module Integrations
module ActiveModel
public :around_validation
end
module ActiveRecord
public :around_save
end
end
end
thanks. removing it works like a charme. i'll use the AR patch to keep it stable for updates.thanks!
On 08.08.2016 07:16, Jonathan Salis wrote:
Closed #7 https://github.com/Sailias/bitcoin_payable/issues/7.
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/Sailias/bitcoin_payable/issues/7#event-747812979, or mute the thread https://github.com/notifications/unsubscribe-auth/AMv1ukTPMu7hgzcUdDJPpwXsRwRpGS6tks5qdnVAgaJpZM4JegHa.
Not sure if Spree or Rails is the issue.
NoMethodError: protected method
around_validation' called for #StateMachine::Machine:0x000000033ffba8`