1
0
Fork 0
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:
Santiago Pastorino 2010-02-18 23:02:41 -02:00 committed by Yehuda Katz
parent e6ce856462
commit e2806929ec

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