2
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

undefined method `halt_callback_chains_on_return_false=' for ActiveSupport:Module (NoMethodError)の解決方法

Posted at

Rails 5.1.0 から 5.2.0にアップデートしたらサーバーが立ち上がらない

Railsを5.1から5.2にアップデートしてdocker-compose up -dしたら

undefined method 'halt_callback_chains_on_return_false=' for ActiveSupport:Module (NoMethodError)

というエラーが出ました。

halt_callback_chains_on_return_false は Rails5.2から廃止

もう3年も前のことですが、halt_callback_chains_on_return_falseメソッドはDeprecateされていました。

本家リポジトリ

コメントアウトで解決

config/initializers/new_framework_defaults.rb

ActiveSupport.halt_callback_chains_on_return_false = false

をコメントアウトで解決します!

2
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?