Cleanup: no need to call presence, as the translate helper already does it

This commit is contained in:
Carlos Antonio da Silva 2011-12-10 15:56:47 -02:00
parent 73aa9da202
commit 2df1aa6c0c
2 changed files with 3 additions and 3 deletions

View File

@ -4,7 +4,7 @@ module SimpleForm
module Hints
def hint
if options[:hint] == true
translate(:hints).presence
translate(:hints)
else
options[:hint]
end

View File

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