Sha256: 0b187db1c631aa8d3a44c34a12f9695be20ae28a375acad20cebd7ca43ab4703

Contents?: true

Size: 270 Bytes

Versions: 8

Compression:

Stored size: 270 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

8 entries across 8 versions & 1 rubygems

Version Path
ibm_db-5.2.0-x86-mingw32 test/models/college.rb
ibm_db-5.1.0-x86-mingw32 test/models/college.rb
ibm_db-5.0.5-x86-mingw32 test/models/college.rb
ibm_db-5.0.4-x86-mingw32 test/models/college.rb
ibm_db-5.0.3-x86-mingw32 test/models/college.rb
ibm_db-5.0.2-x86-mingw32 test/models/college.rb
ibm_db-3.0.5-x86-mingw32 test/models/college.rb
ibm_db-3.0.5 test/models/college.rb