pluginaweek / state_machine

Adds support for creating state machines for attributes on any Ruby class
http://www.pluginaweek.org
MIT License
3.74k stars 507 forks source link

Moved around_transition out of protected block #275

Open awsmsrc opened 11 years ago

awsmsrc commented 11 years ago

I don't know if this is a hack or it is this simple but this seems to fix Issue #251

wkrsz commented 10 years ago

:+1: does the trick for me

huoxito commented 10 years ago

Hey guys any chance we get this merged? It solves a lot of issue on Spree build for Rails 4.1.0.beta1

seuros commented 10 years ago

@pluginaweek is not active nowadays.

awsmsrc commented 10 years ago

@seuros do you know @pluginaweek, or now how to get in touch with them? this is a great gem and would be good to transfer ownership to someone who can afford the time to stay on top of it!

seuros commented 10 years ago

No, i don't. I just checked his activities in the web and my email to him bounced back. I agree with you, that state_machine is one of the best gems around and should be maintained to stay always up to date.

the-teacher commented 10 years ago

Wow wow wow! It's steel doesn't work (( I can't migrate to rails 4.1.0.beta1

the-teacher commented 10 years ago

config/initializers/state_machine_patch.rb

module StateMachine
  module Integrations
     module ActiveModel
        public :around_validation
     end
  end
end