spec/dummy/app/models/async_job.rb
def log(str)
    cs = current_step
    cs['log'] ||= []
    cs['log'] << str
    save!
    str
  end
#
# Log to the current step.
# 
Log to the current step.
Log to the current step .
def log(str)
    cs = current_step
    cs['log'] ||= []
    cs['log'] << str
    save!
    str
  end
def log ( str ) cs = current_step cs [ 'log' ] ||= [ ] cs [ 'log' ] << str save! str end
Log to the current step.
Log to the current step .
str