diff options
author | schneems <richard.schneeman@gmail.com> | 2015-07-26 17:20:12 -0500 |
---|---|---|
committer | schneems <richard.schneeman@gmail.com> | 2015-07-30 12:31:05 -0500 |
commit | 005541b83eb6392bd53ad2e2a8b157c75cf81df1 (patch) | |
tree | 1d8d42ea012077fa09b2283fc382dc1600636aed /actionview | |
parent | 1f831fefe226ed42e89c0b58076f5b6d66588d7e (diff) | |
download | rails-005541b83eb6392bd53ad2e2a8b157c75cf81df1.tar.gz rails-005541b83eb6392bd53ad2e2a8b157c75cf81df1.tar.bz2 rails-005541b83eb6392bd53ad2e2a8b157c75cf81df1.zip |
zOMG 37 objects saved
Diffstat (limited to 'actionview')
-rw-r--r-- | actionview/lib/action_view/renderer/partial_renderer.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/actionview/lib/action_view/renderer/partial_renderer.rb b/actionview/lib/action_view/renderer/partial_renderer.rb index 780fdabbd1..1f9e960488 100644 --- a/actionview/lib/action_view/renderer/partial_renderer.rb +++ b/actionview/lib/action_view/renderer/partial_renderer.rb @@ -520,7 +520,7 @@ module ActionView def retrieve_variable(path, as) variable = as || begin - base = path[-1] == "/" ? "" : File.basename(path) + base = path[-1] == "/".freeze ? "".freeze : File.basename(path) raise_invalid_identifier(path) unless base =~ /\A_?(.*)(?:\.\w+)*\z/ $1.to_sym end |