From 9f070593ff977829b212006dccc8b90a672b0373 Mon Sep 17 00:00:00 2001 From: MrZYX Date: Thu, 12 May 2011 11:05:32 +0200 Subject: [PATCH] check if we can all cleaned_is_rtl? before doing it in direction_for helper --- app/helpers/application_helper.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index f0aabb68a..7b8038b3b 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -311,6 +311,7 @@ module ApplicationHelper end def direction_for(string) + return '' unless string.respond_to?(:cleaned_is_rtl?) string.cleaned_is_rtl? ? 'rtl' : '' end