Class: Dashboard::V2::Group::ReservationsGrid
- Inherits:
-
RsvPackagesGrid
- Object
- ApplicationGrid
- RsvPackagesGrid
- Dashboard::V2::Group::ReservationsGrid
- Defined in:
- app/grids/dashboard/v2/group/reservations_grid.rb
Instance Attribute Summary collapse
-
#current_group ⇒ Object
Returns the value of attribute current_group.
Instance Method Summary collapse
Methods included from SharedReservationsGrid
Instance Attribute Details
#current_group ⇒ Object
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
#branches ⇒ Object
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 |