1e53404fe9
8fdecaaef2
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