Skip to content

Instantly share code, notes, and snippets.

@sdhull
Created April 9, 2011 17:05
Show Gist options
  • Save sdhull/911560 to your computer and use it in GitHub Desktop.
Save sdhull/911560 to your computer and use it in GitHub Desktop.
ensure your application actually loads for resque workers in rails 3
require 'resque/tasks'
task "resque:setup" => :environment do
Rails.application.eager_load! unless Rails.env.development?
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment