mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
ruby 1.9 array.to_s returns a string representing an escaped array
Signed-off-by: Yehuda Katz <yehudakatz@YK.local>
This commit is contained in:
parent
e6ce856462
commit
e2806929ec
1 changed files with 1 additions and 1 deletions
|
@ -29,7 +29,7 @@ module ActionView
|
|||
private
|
||||
|
||||
def scope_key_by_partial(key)
|
||||
if key.to_s.first == "."
|
||||
if (key.respond_to?(:join) ? key.join : key.to_s).first == "."
|
||||
if @_virtual_path
|
||||
@_virtual_path.gsub(%r{/_?}, ".") + key.to_s
|
||||
else
|
||||
|
|
Loading…
Reference in a new issue