app/helpers/dry_crud/table/col.rb in dry_crud-6.0.0 vs app/helpers/dry_crud/table/col.rb in dry_crud-7.1.0

- old
+ new

@@ -1,12 +1,12 @@ module DryCrud module Table # Helper class to store column information. - class Col #:nodoc: + class Col # :nodoc: - delegate :content_tag, :capture, to: :template + delegate :tag, :capture, to: :template attr_reader :header, :html_options, :template, :block def initialize(header, html_options, template, block) @header = header @@ -20,15 +20,15 @@ entry.nil? ? '' : capture(entry, &block) end # Renders the header cell of the Col. def html_header - content_tag(:th, header, html_options) + tag.th(header, **html_options) end # Renders a table cell for the given entry. def html_cell(entry) - content_tag(:td, content(entry), html_options) + tag.td(content(entry), **html_options) end end end end