Permalink
Browse files

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

  • Loading branch information...
1 parent 397262a commit 64d28f61ada584faf4d569ae9dd2a42891a27a46 @spastorino spastorino committed with Yehuda Katz Feb 19, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 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 == "."
template.path_without_format_and_extension.gsub(%r{/_?}, ".") + key.to_s
else
key

0 comments on commit 64d28f6

Please sign in to comment.