Module: GridTable::Model
- Defined in:
- lib/grid_table/model.rb
Instance Attribute Summary collapse
-
#grid_table ⇒ Object
Returns the value of attribute grid_table.
Instance Method Summary collapse
Instance Attribute Details
#grid_table ⇒ Object
Returns the value of attribute grid_table.
3 4 5 |
# File 'lib/grid_table/model.rb', line 3 def grid_table @grid_table end |
Instance Method Details
#grid_table_control(attribute, options = {}) ⇒ Object
5 6 7 8 |
# File 'lib/grid_table/model.rb', line 5 def grid_table_control(attribute, = {}) self.grid_table ||= GridTable::Table.new self.grid_table.add_control(self, attribute, ) end |
#grid_table_strong_params ⇒ Object
10 11 12 |
# File 'lib/grid_table/model.rb', line 10 def grid_table_strong_params self.grid_table.strong_params end |