私はRails 5.0.0.1アプリケーションでunscoped_associations gemを使用しています。gemから生成された静寂の非推奨警告
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 /home/rhl/myapp/config/application.rb:8)
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 /home/rhl/myapp/config/application.rb:8)
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 /home/rhl/myapp/config/application.rb:8)
がどのように私は本番環境では、この警告を消すことができます。
私はこの非推奨の警告を取得していますか?
私が追加しようとしている:
config.active_support.deprecation = :silence
production.rb
にしかし、それは働いていません。ドキュメントhttp://api.rubyonrails.org/classes/ActiveSupport/Deprecation/Behavior.htmlパー
私はあなたの答えを試してみました。それでも私は同じ非推奨の警告を受けています。 – webster
http://stackoverflow.com/a/41820913/3185510ご協力いただきありがとうございます! – webster
この時点までに宝石が初期化されているため、これは機能しません。これは宝石には何の影響も与えませんが、レール上では特定の警告 –