Module: JqGridRails::StructureRegistry::ClassMethods
- Defined in:
- lib/jqgrid_rails/jqgrid_rails_structure_registry.rb
Instance Method Summary collapse
-
#get_grid(grid_name) ⇒ Object
Fetches grid from grid_name symbol.
-
#register_grid(grid_name) ⇒ Object
- Creates a new GridStructure object and stores it in a slot with grid_name as key grid_name
-
grid name symbol (first arg of JqGrid.new(…)).
Instance Method Details
#get_grid(grid_name) ⇒ Object
Fetches grid from grid_name symbol
22 23 24 |
# File 'lib/jqgrid_rails/jqgrid_rails_structure_registry.rb', line 22 def get_grid(grid_name) @grids[grid_name.to_sym] end |
#register_grid(grid_name) ⇒ Object
Creates a new GridStructure object and stores it in a slot with grid_name as key
- grid_name
-
grid name symbol (first arg of JqGrid.new(…))
16 17 18 19 |
# File 'lib/jqgrid_rails/jqgrid_rails_structure_registry.rb', line 16 def register_grid(grid_name) @grids ||= {} @grids[grid_name.to_sym] = JqGridRails::Structure.new(self, grid_name) end |