Draft: Suppress deprecation warning if set in env file
Merge request reports
Activity
The fix in here did not get rid of any of the deprecation warnings (as some had indicated in the SO post
This SO post suggests
Kernel.silence_warnings do Bundler.require(:default, Rails.env) if defined?(Bundler) end
Found an even better one - https://github.com/rails/rails/issues/35164#issuecomment-732658786
add gem 'warning' to Gemfile Then, add below code in application.rb
require 'warning' Gem.path.each do |path| Warning.ignore(//, path) end
Or looks at this post https://blog.arkency.com/do-you-tune-out-ruby-deprecation-warnings/
Please register or sign in to reply