Define the method in the right place

This commit is contained in:
Rafael Mendonça França 2023-09-25 21:04:41 +00:00
parent 4e605f5d0f
commit 88bb5f2749
No known key found for this signature in database
GPG Key ID: FC23B6D0F1EEE948
1 changed files with 1 additions and 1 deletions

View File

@ -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