blob: faf4e6cbc04dcdae2048fc6d78f817106731ee3f (
plain) (
blame)
1
2
3
4
5
6
7
8
9
|
class Car < ActiveRecord::Base
has_many :tyres
has_many :engines
has_many :wheels, :as => :wheelable
scope :incl_tyres, includes(:tyres)
scope :incl_engines, includes(:engines)
end
|