Skip to content
Browse files

Merge pull request #703 from twalpole/extract_legend_method_fix

Fix issue with the extraction of field_set_legend
  • Loading branch information...
2 parents e4d9a76 + 224e283 commit 32eb3661ad1727b0b9b6fbf740b7299d89f29c99 @justinfrench committed
Showing with 1 addition and 0 deletions.
  1. +1 −0 lib/formtastic/helpers/fieldset_wrapper.rb
1 lib/formtastic/helpers/fieldset_wrapper.rb
@@ -49,6 +49,7 @@ def field_set_legend(html_options)
legend = (html_options[:name] || '').to_s
legend %= parent_child_index(html_options[:parent]) if html_options[:parent]
legend = template.content_tag(:legend, template.content_tag(:span, Formtastic::Util.html_safe(legend))) unless legend.blank?
+ legend
# Gets the nested_child_index value from the parent builder. It returns a hash with each

0 comments on commit 32eb366

Please sign in to comment.
Something went wrong with that request. Please try again.