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:
parent
30526ac119
commit
daf226abc8
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue