From 1c7dd65637214af0e31e23958df0d96d071897b4 Mon Sep 17 00:00:00 2001 From: Nicolas Cavigneaux Date: Tue, 14 Oct 2014 22:32:23 +0200 Subject: Use `#tr` instead of `#gsub` `#tr` is more efficient than `#gsub` and can be used as a drop in replacement in this context. --- actionpack/lib/action_dispatch/journey/scanner.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'actionpack/lib/action_dispatch') diff --git a/actionpack/lib/action_dispatch/journey/scanner.rb b/actionpack/lib/action_dispatch/journey/scanner.rb index ad1cd0f5e8..19e0bc03d6 100644 --- a/actionpack/lib/action_dispatch/journey/scanner.rb +++ b/actionpack/lib/action_dispatch/journey/scanner.rb @@ -50,7 +50,7 @@ module ActionDispatch when text = @ss.scan(/(?