Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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

  • Loading branch information...
commit 64d28f61ada584faf4d569ae9dd2a42891a27a46 1 parent 397262a
@spastorino spastorino authored Yehuda Katz committed
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 == "."
template.path_without_format_and_extension.gsub(%r{/_?}, ".") + key.to_s
else
key
Please sign in to comment.
Something went wrong with that request. Please try again.