Class: Pageflow::Admin::EmbeddedIndexTable::SortColumnRecorder Private
- Inherits:
-
Object
- Object
- Pageflow::Admin::EmbeddedIndexTable::SortColumnRecorder
- Defined in:
- app/views/components/pageflow/admin/embedded_index_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.
Instance Attribute Summary collapse
- #columns ⇒ Object readonly private
Instance Method Summary collapse
- #column(name = nil, options = {}) ⇒ Object private
-
#initialize ⇒ SortColumnRecorder
constructor
private
A new instance of SortColumnRecorder.
- #row_attributes ⇒ Object private
Constructor Details
#initialize ⇒ SortColumnRecorder
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 SortColumnRecorder.
104 105 106 |
# File 'app/views/components/pageflow/admin/embedded_index_table.rb', line 104 def initialize @columns = [] end |
Instance Attribute Details
#columns ⇒ Object (readonly)
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.
102 103 104 |
# File 'app/views/components/pageflow/admin/embedded_index_table.rb', line 102 def columns @columns end |
Instance Method Details
#column(name = nil, 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.
108 109 110 111 112 113 114 |
# File 'app/views/components/pageflow/admin/embedded_index_table.rb', line 108 def column(name = nil, = {}) if [:sortable].is_a?(String) || [:sortable].is_a?(Symbol) @columns << [:sortable].to_s elsif [:sortable] != false && name @columns << name.to_s end end |
#row_attributes ⇒ 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.
116 |
# File 'app/views/components/pageflow/admin/embedded_index_table.rb', line 116 def row_attributes; end |