ActionMailer::Base:Class 的未定义方法 (NoMethodError)

undefined method for ActionMailer::Base:Class (NoMethodError)

我已经从 5 降级回 rails 版本 4.2.3,因为我遇到了一些问题,现在如果我尝试启动服务器,我会在终端中不断收到此错误并且服务器不会运行。我如何摆脱这个错误?

/Users/username/.rvm/gems/ruby-2.3.1/gems/actionmailer-4.2.8/lib/action_mailer/base.rb:569:in `method_missing': undefined method `perform_caching=' for ActionMailer::Base:Class (NoMethodError)

我不得不在 development.rb

中注释掉 #config.action_mailer.perform_caching = false