Class: Pageflow::Admin::ExtensibleAttributesTable::RowInserter Private

Inherits:
Object
  • Object
show all
Defined in:
app/views/components/pageflow/admin/extensible_attributes_table.rb

Overview

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

Since:

  • 12.2

Instance Method Summary collapse

Constructor Details

#initialize(context, additional_rows) ⇒ RowInserter

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.

Returns a new instance of RowInserter.

Since:

  • 12.2



17
18
19
20
21
# File 'app/views/components/pageflow/admin/extensible_attributes_table.rb', line 17

def initialize(context, additional_rows)
  @context = context
  @additional_rows = additional_rows
  @rendered_rows = []
end

Instance Method Details

#at_end_of_tableObject

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



29
30
31
# File 'app/views/components/pageflow/admin/extensible_attributes_table.rb', line 29

def at_end_of_table
  render_additional_rows(not_yet_rendered_rows)
end

#row(name, options = {}) ⇒ 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



23
24
25
26
27
# File 'app/views/components/pageflow/admin/extensible_attributes_table.rb', line 23

def row(name, options = {}, &)
  render_additional_rows(rows_at(:before, name))
  context.row(name, options, &)
  render_additional_rows(rows_at(:after, name))
end