class Object

Public Instance Methods

delayed_worker_log(msg) click to toggle source
# File lib/delayed_worker.rb, line 5
def delayed_worker_log(msg)
  if defined? Rails and Rails.respond_to?(:logger)
    Rails.logger.info msg
  else
    $stderr.puts msg
  end
end