Tag: devise activesupport

尝试加载gem’设计时出错。 ActiveSupport:持续时间不能强制转换为Integer

我一直试图解决这个错误一段时间没有找到任何帮助,请帮助。 我正在尝试使用设计gem在我的ROR应用上运行迁移。 但我从ActiveSupport得到错误’持续时间无法强制转换为整数’。 发生这种情况然后我尝试运行: rake db:migrate 我不确定它是否与迁移代码有关,或者它是否与新的设计版本有关。 这是错误消息: /home/sam/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/activesupport-4.1.1/lib/active_support/values/time_zone.rb:285: warning: circular argument reference – now /home/sam/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/thread_safe-0.3.5/lib/thread_safe/cache.rb:155: warning: constant ::Fixnum is deprecated rake aborted! Bundler::GemRequireError: There was an error while trying to load the gem ‘devise’. Gem Load Error is: ActiveSupport::Duration can’t be coerced into Integer Backtrace for gem load error is: /home/sam/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/activesupport-4.1.1/lib/active_support/core_ext/numeric/time.rb:50:in `*’ /home/sam/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/activesupport-4.1.1/lib/active_support/core_ext/numeric/time.rb:50:in `days’ […]