Skip to content
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

Transitions not working with ActiveRecord #61

Closed
marjaimate opened this issue Jan 8, 2013 · 3 comments
Closed

Transitions not working with ActiveRecord #61

marjaimate opened this issue Jan 8, 2013 · 3 comments

Comments

@marjaimate
Copy link

Hi there,

I have ActiveRecord 3.2.10 with ruby 1.9.2-p290 and trying to get this working with workflow gem version 0.8.6.

Without active record, the transitions work fine, as soon as I add in ActiveRecord to the mix, it only created the initial object and records the initial state in the DB correctly, but any transition (whether it's a new instance or trying to resume it from the DB) fails. No error message provided, the object state stays in the original one.

I even tried to run your Booking class example (https://github.com/geekq/workflow/blob/master/test/multiple_workflows_test.rb) and that didn't work either.

Could you look into this please and/or advise what am I doing wrong?

Thanks and regards.
Máté

@marjaimate
Copy link
Author

Just experimented, and the same code works with workflow version 0.8.0

@dwbutler
Copy link

dwbutler commented Jan 9, 2013

Could this be related to #58?

@marjaimate
Copy link
Author

Yep, seems like it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants