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:
Santiago Pastorino 2010-02-18 23:02:41 -02:00 committed by Yehuda Katz
parent e6ce856462
commit e2806929ec
1 changed files with 1 additions and 1 deletions

View File

@ -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