Class: Dashboard::V2::Group::ReviewsGrid

Inherits:
ReviewsGrid show all
Defined in:
app/grids/dashboard/v2/group/reviews_grid.rb

Overview

typed: ignore frozen_string_literal: true

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#current_groupObject

Returns the value of attribute current_group.



4
5
6
# File 'app/grids/dashboard/v2/group/reviews_grid.rb', line 4

def current_group
  @current_group
end

Instance Method Details

#branchesObject



14
15
16
# File 'app/grids/dashboard/v2/group/reviews_grid.rb', line 14

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