overview_sorting.rb 327 B

1234567891011
  1. # Copyright (C) 2012-2024 Zammad Foundation, https://zammad-foundation.org/
  2. class User::OverviewSorting < ApplicationModel
  3. include HasDefaultModelUserRelations
  4. include CanPriorization
  5. belongs_to :user, class_name: 'User'
  6. belongs_to :overview, inverse_of: :overview_sortings
  7. default_scope { order(:prio, :id) }
  8. end