From 2df1aa6c0c42c7cd3912ad909de4c905a839a90c Mon Sep 17 00:00:00 2001 From: Carlos Antonio da Silva Date: Sat, 10 Dec 2011 15:56:47 -0200 Subject: [PATCH] Cleanup: no need to call presence, as the translate helper already does it --- lib/simple_form/components/hints.rb | 2 +- lib/simple_form/components/placeholders.rb | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/simple_form/components/hints.rb b/lib/simple_form/components/hints.rb index 931ab675..80eded79 100644 --- a/lib/simple_form/components/hints.rb +++ b/lib/simple_form/components/hints.rb @@ -4,7 +4,7 @@ module SimpleForm module Hints def hint if options[:hint] == true - translate(:hints).presence + translate(:hints) else options[:hint] end diff --git a/lib/simple_form/components/placeholders.rb b/lib/simple_form/components/placeholders.rb index f4200499..17ba315f 100644 --- a/lib/simple_form/components/placeholders.rb +++ b/lib/simple_form/components/placeholders.rb @@ -9,11 +9,11 @@ module SimpleForm def placeholder_text if options[:placeholder] == true - translate(:placeholders).presence + translate(:placeholders) else options[:placeholder] end end end end -end \ No newline at end of file +end