Skip to content

Commit

Permalink
allow "hint: false" in elements.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
gr8bit committed Jul 8, 2020
1 parent 638737d commit b0b5b9d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/helpers/alchemy/admin/base_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -376,7 +376,7 @@ def render_hint_for(element)

content_tag :span, class: "hint-with-icon" do
render_icon("question-circle") +
content_tag(:span, element.hint.html_safe, class: "hint-bubble")
content_tag(:span, element.hint.try(:html_safe), class: "hint-bubble")
end
end

Expand Down

0 comments on commit b0b5b9d

Please sign in to comment.