Permalink
Browse files

fix in case translate returns an object

  • Loading branch information...
shwoodard committed Jul 19, 2012
1 parent 6d4af55 commit edf917d742a0483c33024a39806134ffd10db18d
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/simple_form/components/hints.rb
@@ -6,7 +6,7 @@ def hint
@hint ||= begin
hint = options[:hint]
hint_content = hint.is_a?(String) ? hint : translate(:hints)
- hint_content.html_safe if hint_content
+ hint_content.html_safe if hint_content && hint_content.is_a?(String)
end
end

0 comments on commit edf917d

Please sign in to comment.