mirror of https://github.com/rails/rails
Define the method in the right place
This commit is contained in:
parent
4e605f5d0f
commit
88bb5f2749
|
@ -9,7 +9,7 @@ class DeepMergeableTest < ActiveSupport::TestCase
|
|||
class << self
|
||||
remove_method :[]
|
||||
|
||||
def self.[](value)
|
||||
def [](value)
|
||||
if value.is_a?(Hash)
|
||||
self.new(value.transform_values { |value| self[value] })
|
||||
else
|
||||
|
|
Loading…
Reference in New Issue