Sha256: 63bc252962ee35ab4528c9fd21fdb88c857737b71f03f96d84560455e7be4abd

Contents?: true

Size: 527 Bytes

Versions: 4

Compression:

Stored size: 527 Bytes

Contents

# frozen_string_literal: true

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

4 entries across 4 versions & 1 rubygems

Version Path
ibm_db-5.5.0-x86-mingw32 test/models/hotel.rb
ibm_db-5.4.1-x86-mingw32 test/models/hotel.rb
ibm_db-5.4.0-x86-mingw32 test/models/hotel.rb
ibm_db-5.3.2-x86-mingw32 test/models/hotel.rb