acts-as-state-machine Questions
4
I'm using the aasm (formerly acts_as_state_machine) gem in my rails 4 application. I have something like this on my Post model
...
aasm column: :state do
state :pending_approval, initial: true
...
Pelican asked 28/1, 2014 at 20:24
4
Solved
What is the best way to persist the object's state to the database on a transition using aasm? I had thought that this would happen automatically but this doesn't seem to be the case.
(Edit: when ...
Traps asked 25/3, 2009 at 18:42
1
© 2022 - 2024 — McMap. All rights reserved.