Skip to content
Browse files

fix in case translate returns an object

  • Loading branch information...
1 parent 6d4af55 commit edf917d742a0483c33024a39806134ffd10db18d @shwoodard shwoodard committed
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/simple_form/components/hints.rb
View
2 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.
Something went wrong with that request. Please try again.