Sha256: 6265d5a3c96bb3b805396d11981304309e5b451480c46858beca3e9fce3382dc

Contents?: true

Size: 497 Bytes

Versions: 6

Compression:

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

6 entries across 6 versions & 1 rubygems

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