Class: Dashboard::V2::Group::OverrideInventoriesGrid

Inherits:
OverrideInventoriesGrid show all
Defined in:
app/grids/dashboard/v2/group/override_inventories_grid.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#current_groupObject

Returns the value of attribute current_group.



7
8
9
# File 'app/grids/dashboard/v2/group/override_inventories_grid.rb', line 7

def current_group
  @current_group
end

Instance Method Details

#branchesObject



31
32
33
# File 'app/grids/dashboard/v2/group/override_inventories_grid.rb', line 31

def branches
  current_group.restaurants.map { |r| [r.name, r.id] }
end