diff options
author | Arun Agrawal <arunagw@gmail.com> | 2013-11-07 20:08:32 +0100 |
---|---|---|
committer | Arun Agrawal <arunagw@gmail.com> | 2013-11-07 20:08:32 +0100 |
commit | daf226abc86557f1f48933a2fd56ee594478f528 (patch) | |
tree | e944a901236657045b2161a7cd6d970dbb958303 /actionview/lib/action_view | |
parent | 30526ac1197a190956273d862c02839de27c09d2 (diff) | |
download | rails-daf226abc86557f1f48933a2fd56ee594478f528.tar.gz rails-daf226abc86557f1f48933a2fd56ee594478f528.tar.bz2 rails-daf226abc86557f1f48933a2fd56ee594478f528.zip |
sub! can return nil
Revert "drop one more string allocation"
This reverts commit 4d15661d6c46c86a62ee1fc358f4b3ef9dd9f2ea.
Diffstat (limited to 'actionview/lib/action_view')
-rw-r--r-- | actionview/lib/action_view/log_subscriber.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/actionview/lib/action_view/log_subscriber.rb b/actionview/lib/action_view/log_subscriber.rb index 3095c9a91e..9336b29d0b 100644 --- a/actionview/lib/action_view/log_subscriber.rb +++ b/actionview/lib/action_view/log_subscriber.rb @@ -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 |