Sha256: 6ece4d5dc5320df39429ea3781678f93f628bb9e715509dc810b70133d8c72c2

Contents?: true

Size: 486 Bytes

Versions: 8

Compression:

Stored size: 486 Bytes

Contents

class Hotel < ActiveRecord::Base
  has_many :departments
  has_many :chefs, through: :departments
  has_many :cake_designers, source_type: 'CakeDesigner', source: :employable, through: :chefs
  has_many :drink_designers, source_type: 'DrinkDesigner', source: :employable, through: :chefs

  has_many :chef_lists, as: :employable_list
  has_many :mocktail_designers, through: :chef_lists, source: :employable, :source_type => "MocktailDesigner"

  has_many :recipes, through: :chefs
end

Version data entries

8 entries across 8 versions & 1 rubygems

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