@ -5,7 +5,7 @@ class ExaminationBank < ApplicationRecord
has_many :tag_discipline_containers, as: :container, dependent: :destroy
has_many :tag_disciplines, through: :tag_discipline_containers
has_many :examination_items, dependent: :destroy
has_many :examination_items, -> {order(position: :asc)}, dependent: :destroy
def question_count
examination_items.size