Sha256: 9ccf7ddf630f51df1cc80a5ac2c18747e646ff07aac83706a1695d4ab2270462
Contents?: true
Size: 612 Bytes
Versions: 7
Compression:
Stored size: 612 Bytes
Contents
# frozen_string_literal: true # Admin::UsersController # # This controller handles the actions related to admin users. # It inherits from Admin::AdminController, which provides # common functionality for all admin-related controllers. module Admin class UsersController < Admin::AdminController # GET /admin/users # # This action retrieves all users with admin privileges. # It assigns the result to the @users instance variable, # which can be used in the corresponding view to display # the list of admin users. def index @users = User.where(admin: true) end end end
Version data entries
7 entries across 7 versions & 1 rubygems