diff options
author | Jon Leighton <j@jonathanleighton.com> | 2012-04-27 12:37:21 +0100 |
---|---|---|
committer | Jon Leighton <j@jonathanleighton.com> | 2012-04-27 12:37:21 +0100 |
commit | 0ed05b0e7379e0a6aa47c5677b90383b9f0132b2 (patch) | |
tree | b5b67fb711af82657ef42509724f490236cdb516 /activerecord/test/models | |
parent | 61555a0df11f535d46a0a631fbb0d0773613d08e (diff) | |
download | rails-0ed05b0e7379e0a6aa47c5677b90383b9f0132b2.tar.gz rails-0ed05b0e7379e0a6aa47c5677b90383b9f0132b2.tar.bz2 rails-0ed05b0e7379e0a6aa47c5677b90383b9f0132b2.zip |
find and replace deprecated keys
Diffstat (limited to 'activerecord/test/models')
-rw-r--r-- | activerecord/test/models/comment.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/test/models/comment.rb b/activerecord/test/models/comment.rb index 8ab4149ff7..3e9f1b0635 100644 --- a/activerecord/test/models/comment.rb +++ b/activerecord/test/models/comment.rb @@ -19,7 +19,7 @@ class Comment < ActiveRecord::Base end def self.search_by_type(q) - self.scoped(:conditions => ["#{QUOTED_TYPE} = ?", q]).all + self.scoped(:where => ["#{QUOTED_TYPE} = ?", q]).all end def self.all_as_method |