aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/models
diff options
context:
space:
mode:
authorJon Leighton <j@jonathanleighton.com>2012-04-25 17:31:26 +0100
committerJon Leighton <j@jonathanleighton.com>2012-04-25 17:52:28 +0100
commit40a711ce29505e95d5033fe02c22ba7469206f06 (patch)
tree3876fc5727f548442b2a860486e7a8ef05b91dd7 /activerecord/test/models
parentbc7309cde337bbd56326fd1f0b38e553f64b519e (diff)
downloadrails-40a711ce29505e95d5033fe02c22ba7469206f06.tar.gz
rails-40a711ce29505e95d5033fe02c22ba7469206f06.tar.bz2
rails-40a711ce29505e95d5033fe02c22ba7469206f06.zip
remove tests for #with_scope (it's now deprecated)
Diffstat (limited to 'activerecord/test/models')
-rw-r--r--activerecord/test/models/developer.rb6
1 files changed, 0 insertions, 6 deletions
diff --git a/activerecord/test/models/developer.rb b/activerecord/test/models/developer.rb
index 4cc4947e3b..e6a468feca 100644
--- a/activerecord/test/models/developer.rb
+++ b/activerecord/test/models/developer.rb
@@ -102,12 +102,6 @@ class DeveloperOrderedBySalary < ActiveRecord::Base
default_scope { order('salary DESC') }
scope :by_name, -> { order('name DESC') }
-
- def self.all_ordered_by_name
- with_scope(:find => { :order => 'name DESC' }) do
- find(:all)
- end
- end
end
class DeveloperCalledDavid < ActiveRecord::Base