aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/models/engine.rb
diff options
context:
space:
mode:
authorNeeraj Singh <neerajdotname@gmail.com>2010-09-07 13:08:03 -0400
committerJosé Valim <jose.valim@gmail.com>2010-09-18 20:49:19 +0200
commit9401fa0b9c89f51e3ec0f7aaeee7404b4a14ada8 (patch)
treea1e3b668a3de2c6c54a639839ec0d739a0e3757c /activerecord/test/models/engine.rb
parent8ae913664ff721e10dfc2c057998a38fd6f76edf (diff)
downloadrails-9401fa0b9c89f51e3ec0f7aaeee7404b4a14ada8.tar.gz
rails-9401fa0b9c89f51e3ec0f7aaeee7404b4a14ada8.tar.bz2
rails-9401fa0b9c89f51e3ec0f7aaeee7404b4a14ada8.zip
expanding the test to include both type of order declaration
while declaring default_scope Also added test for unscoped using block style with four different combinations Signed-off-by: José Valim <jose.valim@gmail.com>
Diffstat (limited to 'activerecord/test/models/engine.rb')
-rw-r--r--activerecord/test/models/engine.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/activerecord/test/models/engine.rb b/activerecord/test/models/engine.rb
index 751c3f02d1..851ff8c22b 100644
--- a/activerecord/test/models/engine.rb
+++ b/activerecord/test/models/engine.rb
@@ -1,3 +1,4 @@
class Engine < ActiveRecord::Base
belongs_to :my_car, :class_name => 'Car', :foreign_key => 'car_id', :counter_cache => :engines_count
end
+