Rails on ruby 2.4: Silence Fixnum/Bignum warnings
Wanna use the latest ruby, but don't really need to be perpetually reminded that rails hasn't caught up with this latest ruby design change? Change the top of your config/application.rb
thusly:
require_relative 'boot'
verbose = $VERBOSE
$VERBOSE = nil
require 'rails/all'
require 'active_support/core_ext/numeric/conversions'
require 'active_job/arguments'
$VERBOSE = verbose
Bundler.require(*Rails.groups)
module MyApp
class Application < Rails::Application
end
end
Yes, this will also suppress any other ruby warnings from the loading of rails code. ¯\_(ツ)_/¯
Tweet