1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Fix undefined method `start_with?' for :to_json

This commit is contained in:
John Hawthorn 2019-11-13 11:45:02 -08:00
parent c6ac55596e
commit a8e812964d

View file

@ -5,7 +5,7 @@ require "active_support/core_ext/hash/deep_merge"
module ActiveSupport
class OptionMerger #:nodoc:
instance_methods.each do |method|
undef_method(method) unless method.start_with?("__", "instance_eval", "class", "object_id")
undef_method(method) unless method.to_s.start_with?("__", "instance_eval", "class", "object_id")
end
def initialize(context, options)