let the direction_for helper return ltr instead of nothing for ltr text, this should fix #1668

This commit is contained in:
MrZYX 2011-07-27 22:34:41 +02:00
parent 00b0519ed3
commit 99751af5a8

View file

@ -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?