diff options
author | Santiago Pastorino <santiago@wyeworks.com> | 2010-02-18 23:02:41 -0200 |
---|---|---|
committer | Yehuda Katz <yehudakatz@YK.local> | 2010-02-18 17:11:32 -0800 |
commit | e2806929ec4bc3d429011039f4b046b600b7c8f8 (patch) | |
tree | ae702a94f7199bc24b54ac06a2ff994049411c2a /actionpack | |
parent | e6ce8564623c20b080a98cc5e6548ac14635c991 (diff) | |
download | rails-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')
-rw-r--r-- | actionpack/lib/action_view/helpers/translation_helper.rb | 2 |
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 |