# Copyright (C) 2012-2026 Zammad Foundation, https://zammad-foundation.org/

class FormUpdater::Relation::TicketPriority < FormUpdater::Relation
  private

  def relation_type
    Ticket::Priority
  end

  def order
    { name: :asc }
  end

  def default_scope
    relation_type.where(active: true)
  end

  def allowed_scope
    relation_type.all
  end
end
