设计异步,在rails升级后抛出错误

时间:2013-02-03 17:33:16

标签: ruby-on-rails ruby ruby-on-rails-3.1

使用设备版本2.2.3升级到Rails 3.1.10后,Device Async会抛出以下错误,

/usr/share/ruby-rvm/gems/ruby-1.9.3-p194/gems/devise-async-0.6.0/lib/devise/async.rb:42:in `<top (required)>': undefined method `add_module' for Devise:Module (NoMethodError)
from /usr/share/ruby-rvm/gems/ruby-1.9.3-p194/gems/activesupport-3.1.10/lib/active_support/dependencies.rb:240:in `require'
from /usr/share/ruby-rvm/gems/ruby-1.9.3-p194/gems/activesupport-3.1.10/lib/active_support/dependencies.rb:240:in `block in require'
from /usr/share/ruby-rvm/gems/ruby-1.9.3-p194/gems/activesupport-3.1.10/lib/active_support/dependencies.rb:223:in `block in load_dependency'
from /usr/share/ruby-rvm/gems/ruby-1.9.3-p194/gems/activesupport-3.1.10/lib/active_support/dependencies.rb:640:in `new_constants_in'
from /usr/share/ruby-rvm/gems/ruby-1.9.3-p194/gems/activesupport-3.1.10/lib/active_support/dependencies.rb:223:in `load_dependency'
from /usr/share/ruby-rvm/gems/ruby-1.9.3-p194/gems/activesupport-3.1.10/lib/active_support/dependencies.rb:240:in `require'
from /usr/share/ruby-rvm/gems/ruby-1.9.3-p194/gems/devise-async-0.6.0/lib/devise-async.rb:1:in `<top (required)>'
from /usr/share/ruby-rvm/gems/ruby-1.9.3-p194/gems/bundler-1.2.3/lib/bundler/runtime.rb:68:in `require'
from /usr/share/ruby-rvm/gems/ruby-1.9.3-p194/gems/bundler-1.2.3/lib/bundler/runtime.rb:68:in `block (2 levels) in require'
from /usr/share/ruby-rvm/gems/ruby-1.9.3-p194/gems/bundler-1.2.3/lib/bundler/runtime.rb:66:in `each'
from /usr/share/ruby-rvm/gems/ruby-1.9.3-p194/gems/bundler-1.2.3/lib/bundler/runtime.rb:66:in `block in require'
from /usr/share/ruby-rvm/gems/ruby-1.9.3-p194/gems/bundler-1.2.3/lib/bundler/runtime.rb:55:in `each'
from /usr/share/ruby-rvm/gems/ruby-1.9.3-p194/gems/bundler-1.2.3/lib/bundler/runtime.rb:55:in `require'
from /usr/share/ruby-rvm/gems/ruby-1.9.3-p194/gems/bundler-1.2.3/lib/bundler.rb:128:in `require'
from /devel/off/ruby/rails/aodb/config/application.rb:7:in `<top (required)>'
from /usr/share/ruby-rvm/gems/ruby-1.9.3-p194/gems/railties-3.1.10/lib/rails/commands.rb:52:in `require'
from /usr/share/ruby-rvm/gems/ruby-1.9.3-p194/gems/railties-3.1.10/lib/rails/commands.rb:52:in `block in <top (required)>'
from /usr/share/ruby-rvm/gems/ruby-1.9.3-p194/gems/railties-3.1.10/lib/rails/commands.rb:49:in `tap'
from /usr/share/ruby-rvm/gems/ruby-1.9.3-p194/gems/railties-3.1.10/lib/rails/commands.rb:49:in `<top (required)>'
from script/rails:6:in `require'
from script/rails:6:in `<main>'

知道该怎么做吗?

1 个答案:

答案 0 :(得分:9)

在“gem devise”下面移动“gem devise-async”解决了这个问题。