Skip to content

Instantly share code, notes, and snippets.

@curt
Created February 9, 2010 14:43
Show Gist options
  • Save curt/299254 to your computer and use it in GitHub Desktop.
Save curt/299254 to your computer and use it in GitHub Desktop.
Minion enqueue_or_log in Rails
module Minion
def enqueue_or_log(key, args)
enqueue(key, args)
rescue
Rails.logger.error "Unable to enqueue '#{key}' with args '#{args.inspect}': #{$!}" if Rails.logger
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment