Sha256: b48c69e7264298c61a3abdfd51319f79b0ecc365250f6efb1d7479002da8b978
Contents?: true
Size: 362 Bytes
Versions: 16
Compression:
Stored size: 362 Bytes
Contents
module Semesterable extend ActiveSupport::Concern included do has_many :semester_connectors, as: :semesterable, dependent: :destroy has_many :semesters, through: :semester_connectors, source: :semester scope :without_semester, -> { includes(:semester_connectors).where(gaku_semester_connectors: { semesterable_id: nil }) } end end
Version data entries
16 entries across 16 versions & 2 rubygems