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