aboutsummaryrefslogblamecommitdiffstats
path: root/activerecord/test/models/hotel.rb
blob: b352cd22f32373f64409a36c68a4829d335adcf7 (plain) (tree)
1
2
3
4
5
6





                                                                                               
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
end