Skip to content
This repository
Browse code

drop one more string allocation

  • Loading branch information...
commit 4d15661d6c46c86a62ee1fc358f4b3ef9dd9f2ea 1 parent 68b7e38
Aaron Patterson authored November 06, 2013
2  actionview/lib/action_view/log_subscriber.rb
@@ -30,7 +30,7 @@ def logger
30 30
 
31 31
     EMPTY = ''
32 32
     def from_rails_root(string)
33  
-      string.sub(rails_root, EMPTY).sub(VIEWS_PATTERN, EMPTY)
  33
+      string.sub(rails_root, EMPTY).sub!(VIEWS_PATTERN, EMPTY)
34 34
     end
35 35
 
36 36
     def rails_root

0 notes on commit 4d15661

Please sign in to comment.
Something went wrong with that request. Please try again.