aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/models/car.rb
blob: 903ec532880a70ad67810a1d26d89975502612c0 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
class Car < ActiveRecord::Base
  has_many :bulbs
  has_many :tyres
  has_many :engines
  has_many :wheels, :as => :wheelable

  scope :incl_tyres, includes(:tyres)
  scope :incl_engines, includes(:engines)

end