Skip to content
Browse files

Refactored html support for hints

  • Loading branch information...
1 parent ccdcde8 commit 739f4da2c1c5d076761a5e9bfe015ed6f211a09b Tom Stone committed Mar 7, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 lib/simple_form/components/hints.rb
View
3 lib/simple_form/components/hints.rb
@@ -5,7 +5,8 @@ module Hints
def hint
@hint ||= begin
hint = options[:hint]
- hint.is_a?(String) ? hint.html_safe : (translate(:hints).html_safe if translate(:hints))
+ hint_content = hint.is_a?(String) ? hint : translate(:hints)
+ hint_content.html_safe if hint_content
end
end

0 comments on commit 739f4da

Please sign in to comment.
Something went wrong with that request. Please try again.