Starter Step

Archive for January 2010

Passing parameters to acts_as_state_machine events

Posted by: Jake Dempsey on: January 19, 2010

This morning I ran into a small roadblock working with the acts_as_state_machine gem. My code started like this: This is a basic example using AASM to provide an approval process for my Communication model. I wanted the ability to just call instance.reject(“some reason”) or instance.reject!(“some reason”). I was really thinking to hard about it. The [...]


Follow

Get every new post delivered to your Inbox.