Skip to content

Commit

Permalink
Use map! instead of replace + map
Browse files Browse the repository at this point in the history
  • Loading branch information
carlosantoniodasilva committed Jun 19, 2012
1 parent 8c07696 commit 808592b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ def convert_value(value)
value.nested_under_indifferent_access
elsif value.is_a?(Array)
value = value.dup if value.frozen?
value.replace(value.map { |e| convert_value(e) })
value.map! { |e| convert_value(e) }
else
value
end
Expand Down

0 comments on commit 808592b

Please sign in to comment.