Skip to content

Commit c49b827

Browse files
authored
Merge pull request rails#46821 from amatsuda/hwia_transform_args
HWIA#transform_values may take no argument
2 parents 2b33690 + f6dbed5 commit c49b827

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

activesupport/lib/active_support/hash_with_indifferent_access.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -330,9 +330,9 @@ def reject(*args, &block)
330330
dup.tap { |hash| hash.reject!(*args, &block) }
331331
end
332332

333-
def transform_values(*args, &block)
333+
def transform_values(&block)
334334
return to_enum(:transform_values) unless block_given?
335-
dup.tap { |hash| hash.transform_values!(*args, &block) }
335+
dup.tap { |hash| hash.transform_values!(&block) }
336336
end
337337

338338
def transform_keys(*args, &block)

0 commit comments

Comments
 (0)