Displaying 1 result from an estimated 1 matches for "run_initial_state_actions".
2008 Jan 07
2
acts_as_state_machine override :initial state
Hello,
I''m not sure if this is where to post this, but i cannot find much
information/support for acts_as_state_machine.
I have a Friendship model which implements acts_as_state_machine. I
have an :initial state of :pending, but i would like to create a
Friendship model and save it directly with :accepted status.
I have tried Friendship.create(:state => "accepted") and