1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

sub! can return nil

Revert "drop one more string allocation"

This reverts commit 4d15661d6c.
This commit is contained in:
Arun Agrawal 2013-11-07 20:08:32 +01:00
parent 30526ac119
commit daf226abc8

View file

@ -30,7 +30,7 @@ module ActionView
EMPTY = ''
def from_rails_root(string)
string.sub(rails_root, EMPTY).sub!(VIEWS_PATTERN, EMPTY)
string.sub(rails_root, EMPTY).sub(VIEWS_PATTERN, EMPTY)
end
def rails_root