KensoDev/perform_later

Not running with rails4

Opened this issue · 0 comments

I am using rails4 and my Gemfile is:

gem "resque", "~> 2.0.0.pre.1", github: "resque/resque"
gem "perform_later"

When i try to run resque it is showing me error

rake aborted!
undefined method `config' for PerformLater:Module
/Users/manoj/projects/bollyflix/config/initializers/resque_perform_later.rb:2:in `<top (required)>'
/Users/manoj/.rvm/gems/ruby-2.0.0-p247@bollyflix.com/gems/activesupport-4.0.0/lib/active_support/dependencies.rb:222:in `load'
/Users/manoj/.rvm/gems/ruby-2.0.0-p247@bollyflix.com/gems/activesupport-4.0.0/lib/active_support/dependencies.rb:222:in `block in load'
/Users/manoj/.rvm/gems/ruby-2.0.0-p247@bollyflix.com/gems/activesupport-4.0.0/lib/active_support/dependencies.rb:213:in `load_dependency'
/Users/manoj/.rvm/gems/ruby-2.0.0-p247@bollyflix.com/gems/activesupport-4.0.0/lib/active_support/dependencies.rb:222:in `load'
/Users/manoj/.rvm/gems/ruby-2.0.0-p247@bollyflix.com/gems/railties-4.0.0/lib/rails/engine.rb:609:in `block (2 levels) in <class:Engine>'
/Users/manoj/.rvm/gems/ruby-2.0.0-p247@bollyflix.com/gems/railties-4.0.0/lib/rails/engine.rb:608:in `each'
/Users/manoj/.rvm/gems/ruby-2.0.0-p247@bollyflix.com/gems/railties-4.0.0/lib/rails/engine.rb:608:in `block in <class:Engine>'
/Users/manoj/.rvm/gems/ruby-2.0.0-p247@bollyflix.com/gems/railties-4.0.0/lib/rails/initializable.rb:30:in `instance_exec'
/Users/manoj/.rvm/gems/ruby-2.0.0-p247@bollyflix.com/gems/railties-4.0.0/lib/rails/initializable.rb:30:in `run'
/Users/manoj/.rvm/gems/ruby-2.0.0-p247@bollyflix.com/gems/railties-4.0.0/lib/rails/initializable.rb:55:in `block in run_initializers'
/Users/manoj/.rvm/gems/ruby-2.0.0-p247@bollyflix.com/gems/railties-4.0.0/lib/rails/initializable.rb:44:in `each'
/Users/manoj/.rvm/gems/ruby-2.0.0-p247@bollyflix.com/gems/railties-4.0.0/lib/rails/initializable.rb:44:in `tsort_each_child'
/Users/manoj/.rvm/gems/ruby-2.0.0-p247@bollyflix.com/gems/railties-4.0.0/lib/rails/initializable.rb:54:in `run_initializers'
/Users/manoj/.rvm/gems/ruby-2.0.0-p247@bollyflix.com/gems/railties-4.0.0/lib/rails/application.rb:215:in `initialize!'
/Users/manoj/.rvm/gems/ruby-2.0.0-p247@bollyflix.com/gems/railties-4.0.0/lib/rails/railtie/configurable.rb:30:in `method_missing'
/Users/manoj/projects/bollyflix/config/environment.rb:5:in `<top (required)>'
/Users/manoj/.rvm/gems/ruby-2.0.0-p247@bollyflix.com/gems/activesupport-4.0.0/lib/active_support/dependencies.rb:228:in `require'
/Users/manoj/.rvm/gems/ruby-2.0.0-p247@bollyflix.com/gems/activesupport-4.0.0/lib/active_support/dependencies.rb:228:in `block in require'
/Users/manoj/.rvm/gems/ruby-2.0.0-p247@bollyflix.com/gems/activesupport-4.0.0/lib/active_support/dependencies.rb:213:in `load_dependency'
/Users/manoj/.rvm/gems/ruby-2.0.0-p247@bollyflix.com/gems/activesupport-4.0.0/lib/active_support/dependencies.rb:228:in `require'
/Users/manoj/.rvm/gems/ruby-2.0.0-p247@bollyflix.com/gems/railties-4.0.0/lib/rails/application.rb:189:in `require_environment!'
/Users/manoj/.rvm/gems/ruby-2.0.0-p247@bollyflix.com/gems/railties-4.0.0/lib/rails/application.rb:249:in `block in run_tasks_blocks'
/Users/manoj/.rvm/gems/ruby-2.0.0-p247@bollyflix.com/bin/ruby_noexec_wrapper:14:in `eval'
/Users/manoj/.rvm/gems/ruby-2.0.0-p247@bollyflix.com/bin/ruby_noexec_wrapper:14:in `<main>'
Tasks: TOP => resque:work => resque:preload => resque:setup => environment
(See full trace by running task with --trace)