Sha256: 862aba44630288d852f05bf8d04533ffb2a03cdc8412aa538d383d4e7159bc94
Contents?: true
Size: 292 Bytes
Versions: 4
Compression:
Stored size: 292 Bytes
Contents
# frozen_string_literal: true require "models/arunit2_model" require "active_support/core_ext/object/with_options" class College < ARUnit2Model has_many :courses with_options dependent: :destroy do |assoc| assoc.has_many :students, -> { where(active: true) } end end
Version data entries
4 entries across 4 versions & 1 rubygems