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:
parent
c6ac55596e
commit
a8e812964d
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue