Skip to content

Instantly share code, notes, and snippets.

@jugyo
Created January 18, 2012 09:47
Show Gist options
  • Save jugyo/1632224 to your computer and use it in GitHub Desktop.
Save jugyo/1632224 to your computer and use it in GitHub Desktop.
the railtie of resque-rails
module Resque::Rails
class Railtie < Rails::Railtie
initializer 'resque.set_config' do
Resque.redis ||= 'localhost:6379'
end
rake_tasks do
require 'resque/tasks'
task "resque:setup" => :environment
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment