Class: Dashboard::V2::Group::ReservationsGrid

Inherits:
RsvPackagesGrid show all
Defined in:
app/grids/dashboard/v2/group/reservations_grid.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from SharedReservationsGrid

#row_class

Instance Attribute Details

#current_groupObject

Returns the value of attribute current_group.



5
6
7
# File 'app/grids/dashboard/v2/group/reservations_grid.rb', line 5

def current_group
  @current_group
end

Instance Method Details

#branchesObject



39
40
41
42
43
44
45
# File 'app/grids/dashboard/v2/group/reservations_grid.rb', line 39

def branches
  if respond_to?(:current_group) && current_group.present?
    current_group.restaurants.map { |r| [r.name, r.id] }
  else
    {}
  end
end