Changes to constant unloading in Ruby 2.4

We noticed some interesting behavior recently while upgrading to Rails 5.0.1 and Ruby 2.4. Between MRI 2.3x branch and 2.4.0, constant unloading no longer affects variable references to the unloaded class constant: ref = Object.const_set(“ASD”, Class.new) => ASD 2.4.0 :014 > Object.send(:remove_const, “ASD”) => ASD 2.4.0 :015 > ref.name => “ASD” In previous versions of […]