lib/resque/plugins/multi_step_task.rb
# A bit of randomness to ensure tasks are uniquely identified.
A bit of randomness to ensure tasks are uniquely identified.
A bit of randomness to ensure tasks are uniquely identified .
def nonce
          nonce = ""
          5.times{nonce << NONCE_CHARS[rand(NONCE_CHARS.length)]}
          nonce
        end
def nonce nonce = "" 5 . times { nonce << NONCE_CHARS [ rand ( NONCE_CHARS . length ) ] } nonce end
A bit of randomness to ensure tasks are uniquely identified.
A bit of randomness to ensure tasks are uniquely identified .