Files
fizzy/app/controllers/prompts/users_controller.rb
T
Mike Dalessio 739d77e0c6 Only include active users in Lexxy prompts
Specifically, exclude users that are inactive or with role "system".

ref: https://app.fizzy.do/5986089/cards/2760
ref: https://app.fizzy.do/5986089/cards/2789
2025-11-04 18:48:59 -05:00

10 lines
180 B
Ruby

class Prompts::UsersController < ApplicationController
def index
@users = User.active.alphabetically
if stale? etag: @users
render layout: false
end
end
end