aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib
diff options
context:
space:
mode:
authorSantiago Pastorino <santiago@wyeworks.com>2010-02-18 23:02:41 -0200
committerYehuda Katz <yehudakatz@YK.local>2010-02-18 17:11:32 -0800
commite2806929ec4bc3d429011039f4b046b600b7c8f8 (patch)
treeae702a94f7199bc24b54ac06a2ff994049411c2a /actionpack/lib
parente6ce8564623c20b080a98cc5e6548ac14635c991 (diff)
downloadrails-e2806929ec4bc3d429011039f4b046b600b7c8f8.tar.gz
rails-e2806929ec4bc3d429011039f4b046b600b7c8f8.tar.bz2
rails-e2806929ec4bc3d429011039f4b046b600b7c8f8.zip
ruby 1.9 array.to_s returns a string representing an escaped array
Signed-off-by: Yehuda Katz <yehudakatz@YK.local>
Diffstat (limited to 'actionpack/lib')
-rw-r--r--actionpack/lib/action_view/helpers/translation_helper.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_view/helpers/translation_helper.rb b/actionpack/lib/action_view/helpers/translation_helper.rb
index a42e5542f2..7d954b3a2f 100644
--- a/actionpack/lib/action_view/helpers/translation_helper.rb
+++ b/actionpack/lib/action_view/helpers/translation_helper.rb
@@ -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