state-machines/state_machines

ActiveRecord

Closed this issue · 3 comments

Is ActiveRecord supported like in the 'state_machine' gem?
State does not seem to be persisted with a database field of 'state'...
Am I missing something?

The integrations are in separate gems.
For AR state_machines-activerecord

Oh, cool. Thank you!

Yeah but the state_machines_activerecord gem requires Rails 4. I'm using state machines with Rails 3 in an activerecord model and once a record is saved, rec.state always returns nil. Is there any way to address this without upgrading to Rails 4?