Skip to content
Browse files

ruby 1.9 array.to_s returns a string representing an escaped array

Signed-off-by: Yehuda Katz <yehudakatz@YK.local>
  • Loading branch information...
1 parent e6ce856 commit e2806929ec4bc3d429011039f4b046b600b7c8f8 @spastorino spastorino committed with Yehuda Katz
Showing with 1 addition and 1 deletion.
  1. +1 −1 actionpack/lib/action_view/helpers/translation_helper.rb
View
2 actionpack/lib/action_view/helpers/translation_helper.rb
@@ -29,7 +29,7 @@ def localize(*args)
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

0 comments on commit e280692

Please sign in to comment.
Something went wrong with that request. Please try again.