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

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

Overview

This module is part of a private API. You should avoid using this module if possible, as it may be removed or be changed in the future.

Since:

  • 12.2

Instance Method Summary collapse

Instance Method Details

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

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Since:

  • 12.2



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

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