Cleanup: no need to call presence, as the translate helper already does it
This commit is contained in:
parent
73aa9da202
commit
2df1aa6c0c
|
@ -4,7 +4,7 @@ module SimpleForm
|
|||
module Hints
|
||||
def hint
|
||||
if options[:hint] == true
|
||||
translate(:hints).presence
|
||||
translate(:hints)
|
||||
else
|
||||
options[:hint]
|
||||
end
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue