app/components/katalyst/tables/body_row_component.rb in katalyst-tables-2.2.10 vs app/components/katalyst/tables/body_row_component.rb in katalyst-tables-2.2.11

- old
+ new

@@ -1,11 +1,11 @@ # frozen_string_literal: true module Katalyst module Tables class BodyRowComponent < ViewComponent::Base # :nodoc: - include HasHtmlAttributes + include Katalyst::HtmlAttributes renders_many :columns, ->(component) { component } def initialize(table, record) super() @@ -37,8 +37,11 @@ end def inspect "#<#{self.class.name} record: #{record.inspect}>" end + + # Backwards compatibility with tables 1.0 + alias_method :options, :html_attributes= end end end