state_machine: around_validation error for Rails4.1.0beta
Hello!
I have following problem:
Page.last.to_draft
Page Load (0.2ms) SELECT "pages".* FROM "pages" ORDER BY "pages"."id" DESC LIMIT 1
(0.1ms) begin transaction
(0.1ms) rollback transaction
NoMethodError: protected method `around_validation' called for #<StateMachine::Machine:0x00000004382b98>
bin/rails --version
Rails 4.1.0.beta
Maybe it’s will be interesting for somebody.
Thank you!
About this issue
- Original URL
- State: open
- Created 11 years ago
- Reactions: 8
- Comments: 93
Commits related to this issue
- Patch StateMachine Gem to avoid errors Patch suggested in https://github.com/pluginaweek/state_machine/issues/251. TODO: Consider investigating an alternative state machine, e.g. aasm or https://git... — committed to alphagov/manuals-publisher by chrisroos 7 years ago
- Patch StateMachine Gem to avoid errors Patch suggested in https://github.com/pluginaweek/state_machine/issues/251. TODO: Consider investigating an alternative state machine, e.g. aasm or https://git... — committed to alphagov/manuals-publisher by chrisroos 7 years ago
- Patch StateMachine Gem to avoid errors Patch suggested in https://github.com/pluginaweek/state_machine/issues/251. TODO: Consider investigating an alternative state machine, e.g. aasm or https://git... — committed to alphagov/manuals-publisher by chrisroos 7 years ago
- Patch StateMachine Gem to avoid errors This fixes the following errors we're seeing: > NoMethodError: protected method `around_validation' called for > #<StateMachine::Machine:0x00000004382b98> The... — committed to alphagov/manuals-publisher by chrisroos 7 years ago
- Patch StateMachine Gem to avoid errors This fixes the following errors we're seeing: > NoMethodError: protected method `around_validation' called for > #<StateMachine::Machine:0x00000004382b98> The... — committed to alphagov/manuals-publisher by chrisroos 7 years ago
- Add state machine patch to fix error with state machine See here for details: https://github.com/pluginaweek/state_machine/issues/251#issuecomment-32133267 — committed to luisramos0/openfoodnetwork by luisramos0 4 years ago
- Add state machine patch to fix error with state machine See here for details: https://github.com/pluginaweek/state_machine/issues/251#issuecomment-32133267 — committed to luisramos0/openfoodnetwork by luisramos0 4 years ago
- Add state machine patch to fix error with state machine See here for details: https://github.com/pluginaweek/state_machine/issues/251#issuecomment-32133267 — committed to openfoodfoundation/openfoodnetwork by luisramos0 4 years ago
- Add state machine patch to fix error with state machine See here for details: https://github.com/pluginaweek/state_machine/issues/251#issuecomment-32133267 — committed to openfoodfoundation/openfoodnetwork by luisramos0 4 years ago
- Add state machine patch to fix error with state machine See here for details: https://github.com/pluginaweek/state_machine/issues/251#issuecomment-32133267 — committed to openfoodfoundation/openfoodnetwork by luisramos0 4 years ago
- Add state machine patch to fix error with state machine See here for details: https://github.com/pluginaweek/state_machine/issues/251#issuecomment-32133267 — committed to openfoodfoundation/openfoodnetwork by luisramos0 4 years ago
- Add state machine patch to fix error with state machine See here for details: https://github.com/pluginaweek/state_machine/issues/251#issuecomment-32133267 — committed to luisramos0/openfoodnetwork by luisramos0 4 years ago
- Add state machine patch to fix error with state machine See here for details: https://github.com/pluginaweek/state_machine/issues/251#issuecomment-32133267 — committed to openfoodfoundation/openfoodnetwork by luisramos0 4 years ago
- Add state machine patch to fix error with state machine See here for details: https://github.com/pluginaweek/state_machine/issues/251#issuecomment-32133267 — committed to Matt-Yorkley/openfoodnetwork by luisramos0 4 years ago
- Add state machine patch to fix error with state machine See here for details: https://github.com/pluginaweek/state_machine/issues/251#issuecomment-32133267 — committed to openfoodfoundation/openfoodnetwork by luisramos0 4 years ago
- Add state machine patch to fix error with state machine See here for details: https://github.com/pluginaweek/state_machine/issues/251#issuecomment-32133267 — committed to Matt-Yorkley/openfoodnetwork by luisramos0 4 years ago
- Add state machine patch to fix error with state machine See here for details: https://github.com/pluginaweek/state_machine/issues/251#issuecomment-32133267 — committed to Matt-Yorkley/openfoodnetwork by luisramos0 4 years ago
- Add state machine patch to fix error with state machine See here for details: https://github.com/pluginaweek/state_machine/issues/251#issuecomment-32133267 — committed to openfoodfoundation/openfoodnetwork by luisramos0 4 years ago
- Add state machine patch to fix error with state machine See here for details: https://github.com/pluginaweek/state_machine/issues/251#issuecomment-32133267 — committed to openfoodfoundation/openfoodnetwork by luisramos0 4 years ago
- Add state machine patch to fix error with state machine See here for details: https://github.com/pluginaweek/state_machine/issues/251#issuecomment-32133267 — committed to Matt-Yorkley/openfoodnetwork by luisramos0 4 years ago
config/initializers/state_machine_patch.rb
Thank You!
If it has not come to your attention yet, there is a maintained fork of this project by @seuros, which is probably a better solution than to monkeypatch this abandoned project.
https://github.com/state-machines/state_machines
Maybe instead of continuously stamping +1, we can create a community fork and finally keep on with the development?
guys just use AASM (Acts As State Machine), its a shame to see this one go but its had no activity for a while