Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

fix in case translate returns an object #627

Closed
wants to merge 1 commit into
from
Jump to file or symbol
Failed to load files and symbols.
+1 −1
Split
@@ -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