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
|
class << self
|
||||||
remove_method :[]
|
remove_method :[]
|
||||||
|
|
||||||
def self.[](value)
|
def [](value)
|
||||||
if value.is_a?(Hash)
|
if value.is_a?(Hash)
|
||||||
self.new(value.transform_values { |value| self[value] })
|
self.new(value.transform_values { |value| self[value] })
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user