Sha256: 5e6aab0e5180d4388edc611a5a251b8fca19ee3680fd7bd872cc5263ddb3bf76
Contents?: true
Size: 260 Bytes
Versions: 18
Compression:
Stored size: 260 Bytes
Contents
require_dependency '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
18 entries across 18 versions & 2 rubygems