Skip to content

Instantly share code, notes, and snippets.

@Epictetus
Forked from jugyo/gist:1632224
Created January 18, 2012 10:15
Show Gist options
  • Select an option

  • Save Epictetus/1632301 to your computer and use it in GitHub Desktop.

Select an option

Save Epictetus/1632301 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