Class: Admin::Roles::UsersController

Inherits:
ApplicationController
  • Object
show all
Defined in:
app/controllers/admin/roles/users_controller.rb

Instance Method Summary collapse

Instance Method Details

#indexObject


2
3
4
5
# File 'app/controllers/admin/roles/users_controller.rb', line 2

def index
  @role_name = params[:role_id]
  @users = User.joins(:roles).where(roles: { name: params[:role_id] }).order(:login).distinct
end