diff options
author | Jon Leighton <j@jonathanleighton.com> | 2012-04-27 10:30:52 +0100 |
---|---|---|
committer | Jon Leighton <j@jonathanleighton.com> | 2012-04-27 10:30:52 +0100 |
commit | a57b7842d0fcdcbcc567532d3a5c1f2628057a0d (patch) | |
tree | 5078ab391fb62beb1593a4741ade8cf36aac8a47 /activerecord/test/models | |
parent | 4ed6167e985ed41311d979371813f22fcb0143b7 (diff) | |
download | rails-a57b7842d0fcdcbcc567532d3a5c1f2628057a0d.tar.gz rails-a57b7842d0fcdcbcc567532d3a5c1f2628057a0d.tar.bz2 rails-a57b7842d0fcdcbcc567532d3a5c1f2628057a0d.zip |
remove unnecessary test code
Diffstat (limited to 'activerecord/test/models')
-rw-r--r-- | activerecord/test/models/topic.rb | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/activerecord/test/models/topic.rb b/activerecord/test/models/topic.rb index ef9de9669c..079e403444 100644 --- a/activerecord/test/models/topic.rb +++ b/activerecord/test/models/topic.rb @@ -11,11 +11,7 @@ class Topic < ActiveRecord::Base scope :scope_with_lambda, lambda { scoped } scope :by_lifo, -> { where(:author_name => 'lifo') } - - ActiveSupport::Deprecation.silence do - scope :approved_as_hash_condition, :conditions => {:topics => {:approved => true}} - scope :replied, :conditions => ['replies_count > 0'] - end + scope :replied, -> { where 'replies_count > 0' } scope 'approved_as_string', -> { where(:approved => true) } scope :anonymous_extension, -> { scoped } do |