Class: Dashboard::V2::Group::StaffsController

Inherits:
StaffsController show all
Defined in:
app/controllers/dashboard/v2/group/staffs_controller.rb

Overview

typed: ignore frozen_string_literal: true

Instance Method Summary collapse

Methods inherited from StaffsController

#create, #create_first_account, #destroy, #edit, #new, #show, #skip_first_account, #update

Methods inherited from MainController

#default_fallback_location, #default_url_options, #kiosque_callback

Methods included from LogrageCustomLogger

#append_info_to_payload

Methods included from Stimulus::TagController

#stimulus

Methods included from OwnerLoginMode

#current_owner, #group_owner_type?, #request_path_contain_group?, #single_owner_type?

Methods included from OwnerDashboardsHelper

#events_ajax_previous_link, #show_source

Methods inherited from ApplicationController

#after_sign_in_path_for, #after_sign_out_path_for, #default_url_options, #identity_cache_memoization, #render_not_found, #routing_error, search_params_key=

Methods included from ControllerHelpers

#check_boolean_param, #get_banners, #inventory_params, #reservation_params

Instance Method Details

#indexObject



6
7
8
9
10
# File 'app/controllers/dashboard/v2/group/staffs_controller.rb', line 6

def index
  @grid = Dashboard::V2::Group::StaffsGrid.new(default_params.merge(search_params)) do |scope|
    scope.by_restaurant_id(current_owner.restaurants.ids).page(params[:page])
  end
end