-
Notifications
You must be signed in to change notification settings - Fork 513
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
around_validation error for Rails4.1.0beta #251
Comments
I have this too! Its being caused on a machinist .make! call. |
any update on this? |
this is a quick fix, I haven't looked into this more deeply to check for more serious repercussions. With a bit if guidance form a maintainer i'm happy to work on this |
bump, same problem on |
bump - same problem here using Rails 4.1.0.beta
|
PR from @lukeroberts1990 fixes the problem for me (Rails HEAD) |
Wow wow wow! It's steel doesn't work (( |
config/initializers/state_machine_patch.rb module StateMachine
module Integrations
module ActiveModel
public :around_validation
end
end
end |
@the-teacher Thanks! works great |
It's not worked for me, because same error for :around_save protected method (rails 4.1.0.beta1). module StateMachine
module Integrations
module ActiveModel
public :around_validation
end
module ActiveRecord
public :around_save
end
end
end |
@Kerny I am on rails edge, and that seems to work |
Seems like a after_transition not works for rails edge (ActiveRecord) to ... |
+1 |
2 similar comments
+1 |
+1 |
Last time authored 10 months ago and 19 unresolved pull requests. Very sadly ... |
@obrie Would be a shame to see state machine go stale, I'm a big fan. Rails is now at v4.1.0rc2 which I reckon means we're pretty close to the release which will make this officially 'broken' soon. I'm sure some people in the community would be happy to help with maintenance. |
Same problem in 4.1.0 stable |
+1 |
+1 |
2 similar comments
+1 |
+1 |
+1 |
2 similar comments
+1 |
+1 |
👍 |
guys just use AASM (Acts As State Machine), its a shame to see this one go but its had no activity for a while |
word to the wise, while its great that somebody is supporting state_machine, it is not 100% the same behavior as the old state_machine gem... I suspect there were bugs in the old version that have been fixed. At any rate, you might find during the upgrade the quickest fix is the monkey patch. |
+1 |
2 similar comments
+1 |
+1 |
Thanks @the-teacher, and @gingermusketeer! |
Patch suggested in pluginaweek/state_machine#251. TODO: Consider investigating an alternative state machine, e.g. aasm or https://github.com/state-machines/state_machines
Patch suggested in pluginaweek/state_machine#251. TODO: Consider investigating an alternative state machine, e.g. aasm or https://github.com/state-machines/state_machines
Patch suggested in pluginaweek/state_machine#251. TODO: Consider investigating an alternative state machine, e.g. aasm or https://github.com/state-machines/state_machines
This fixes the following errors we're seeing: > NoMethodError: protected method `around_validation' called for > #<StateMachine::Machine:0x00000004382b98> The patch was suggested in pluginaweek/state_machine#251. It would appear that this StateMachine Gem is no longer maintained so we might want to consider upgrading to an alternative in future.
This fixes the following errors we're seeing: > NoMethodError: protected method `around_validation' called for > #<StateMachine::Machine:0x00000004382b98> The patch was suggested in pluginaweek/state_machine#251. It would appear that this StateMachine Gem is no longer maintained so we might want to consider upgrading to an alternative in future.
Hello!
I have following problem:
Maybe it's will be interesting for somebody.
Thank you!
The text was updated successfully, but these errors were encountered: