Каждый раз, когда я выполняю свои тесты, я получаю эти предупреждения об устаревании:
DEPRECATION WARNING: alias_method_chain is deprecated. Please, use Module#prepend instead. From module, you can access the original method using super. (called from <top (required)> at /Users/johnvanarkelen/Documents/Web development/rails/test-eagle/config/environment.rb:5)
DEPRECATION WARNING: alias_method_chain is deprecated. Please, use Module#prepend instead. From module, you can access the original method using super. (called from <top (required)> at /Users/johnvanarkelen/Documents/Web development/rails/test-eagle/config/environment.rb:5)
DEPRECATION WARNING: after_filter is deprecated and will be removed in Rails 5.1. Use after_action instead. (called from <top (required)> at /Users/johnvanarkelen/Documents/Web development/rails/test-eagle/config/environment.rb:5)
Когда я проверяю строку 5 config/environment.rb
, есть этот код:
Rails.application.initialize!
Когда я ищу в своем репозитории after_action
, after_filter
или alias_method_chain
, он не найден. Что я могу сделать, чтобы избавиться от этих предупреждений?