Module: Pageflow::Admin::ExtensibleAttributesTable::BuilderMethods

Defined in:
app/views/components/pageflow/admin/extensible_attributes_table.rb

Overview

Since:

  • 12.2

Instance Method Summary collapse

Instance Method Details

#extensible_attributes_table_for(model, additional_rows, &block) ⇒ Object

Since:

  • 12.2



5
6
7
8
9
10
11
# File 'app/views/components/pageflow/admin/extensible_attributes_table.rb', line 5

def extensible_attributes_table_for(model, additional_rows, &block)
  attributes_table_for(model) do
    row_inserter = RowInserter.new(self, additional_rows)
    RowDelegator.new(self, row_inserter).instance_eval(&block)
    row_inserter.at_end_of_table
  end
end