Sha256: 42124104b1943e9f84d2edda4414931d1d83c43a0073426378a4e04cc345b62b
Contents?: true
Size: 407 Bytes
Versions: 6
Compression:
Stored size: 407 Bytes
Contents
module Gradable extend ActiveSupport::Concern included do has_many :grading_method_connectors, as: :gradable has_many :grading_methods, through: :grading_method_connectors has_many :exam_portion_scores, as: :gradable end def use_primary_grading_method_set if Gaku::GradingMethodSet.primary grading_methods << Gaku::GradingMethodSet.primary.grading_methods end end end
Version data entries
6 entries across 6 versions & 1 rubygems