While using the gem with rails 4.2 I have faced the following issue: ``` protected method `around_validation' called for #<StateMachine::Machine:0x00000004f953e0> ``` To fix this I have to add a monkey patch. I added the following code inside config/initializers/state_machine_patch.rb ``` module StateMachine module Integrations module ActiveModel public :around_validation end end end ``` There is any best way to fix it?
Activity
twalpole commentedon Feb 29, 2016
This gem isn't supported anymore - check out the fork at https://github.com/state-machines/state_machines to see if it'll work for you
kaiomagalhaes commentedon Feb 29, 2016
@twalpole Thanks for the information. The bad thing is that with this fork it shows up another error
anklos commentedon Mar 27, 2017
thanks for the patch. just met the same issue.
this is a very useful gem, would be sad to see it left unmaintained.
Fix NoMethodError: protected method around_validation