From 99751af5a86d14b96cfb3d892866b778a27a38a1 Mon Sep 17 00:00:00 2001 From: MrZYX Date: Wed, 27 Jul 2011 22:34:41 +0200 Subject: [PATCH] let the direction_for helper return ltr instead of nothing for ltr text, this should fix #1668 --- app/helpers/application_helper.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index 3d540704b..4121bdde5 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -89,7 +89,7 @@ module ApplicationHelper def direction_for(string) return '' unless string.respond_to?(:cleaned_is_rtl?) - string.cleaned_is_rtl? ? 'rtl' : '' + string.cleaned_is_rtl? ? 'rtl' : 'ltr' end def rtl?