Fix after_commit callback doc

This commit is contained in:
Luiz Branco 2013-11-29 12:39:50 -02:00
parent 12e7d98ee4
commit 9c48f76e9c
1 changed files with 2 additions and 2 deletions

View File

@ -325,9 +325,9 @@ class Job < ActiveRecord::Base
aasm do
state :sleeping, :initial => true
state :running
state :running, :after_commit => :notify_about_running_job
event :run, :after_commit => :notify_about_running_job do
event :run do
transitions :from => :sleeping, :to => :running
end
end