Permalink
Browse files

Added html_safe back to suppress_fields output

  • Loading branch information...
1 parent 017bf71 commit f72e8d3730f959a272065e4bdebc4dfd6551be27 @wgrrrr wgrrrr committed Mar 9, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/nested_form/builder_mixin.rb
@@ -75,7 +75,7 @@ def fields_for_with_nested_attributes(association_name, *args)
end
def fields_for_nested_model(name, object, options, block)
- output = options[:suppress_fields] ? '' : %(<#{options[:wrapper_tag]} class="fields#{options[:wrapper_class]}">).html_safe
+ output = options[:suppress_fields] ? ''.html_safe : %(<#{options[:wrapper_tag]} class="fields#{options[:wrapper_class]}">).html_safe
output << super
output.safe_concat("</#{options[:wrapper_tag]}>") if not options[:suppress_fields]
output

0 comments on commit f72e8d3

Please sign in to comment.