diff options
author | Neeraj Singh <neerajdotname@gmail.com> | 2010-08-03 17:26:59 -0400 |
---|---|---|
committer | Xavier Noria <fxn@hashref.com> | 2010-08-14 13:17:29 +0200 |
commit | 8fdecaaef210355cb21da08daa44487549888bbf (patch) | |
tree | f3a47e76edf14bebc5d5aa13917a057ee750c5af /activerecord/test/models/car.rb | |
parent | 535082fe3e5a46cddc7b3190297bcb0d08a1b767 (diff) | |
download | rails-8fdecaaef210355cb21da08daa44487549888bbf.tar.gz rails-8fdecaaef210355cb21da08daa44487549888bbf.tar.bz2 rails-8fdecaaef210355cb21da08daa44487549888bbf.zip |
Ensure we can nest include calls [#5285 state:resolved]
Signed-off-by: José Valim <jose.valim@gmail.com>
Diffstat (limited to 'activerecord/test/models/car.rb')
-rw-r--r-- | activerecord/test/models/car.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/activerecord/test/models/car.rb b/activerecord/test/models/car.rb index 1101180a67..faf4e6cbc0 100644 --- a/activerecord/test/models/car.rb +++ b/activerecord/test/models/car.rb @@ -1,4 +1,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 |