8000 Use tag.legend instead of "<legend ..." · activeadmin/activeadmin@4312e2b · GitHub
[go: up one dir, main page]

Skip to content

Commit 4312e2b

Browse files
amieljavierjulio
authored andcommitted
Use tag.legend instead of "<legend ..."
1 parent 9d4d081 commit 4312e2b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/active_admin/views/components/active_admin_form.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ def build(form_builder, *args, &block)
131131
html_options[:class] ||= "inputs"
132132
legend = args.shift if args.first.is_a?(::String)
133133
legend = html_options.delete(:name) if html_options.key?(:name)
134-
legend_tag = legend ? "<legend class=\"fieldset-title\">#{ERB::Util.html_escape(legend)}</legend>" : ""
134+
legend_tag = legend ? tag.legend(legend, class: "fieldset-title") : ""
135135
fieldset_attrs = tag_attributes html_options
136136
@opening_tag = "<fieldset #{fieldset_attrs}>#{legend_tag}<ol>"
137137
@closing_tag = "</ol></fieldset>"

0 commit comments

Comments
 (0)
0