aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/models/post.rb
diff options
context:
space:
mode:
authorAaron Patterson <aaron.patterson@gmail.com>2010-12-22 18:22:54 -0800
committerAaron Patterson <aaron.patterson@gmail.com>2010-12-22 18:23:38 -0800
commit3e64336647fefe598ff3b0775401e2c2c5d378d3 (patch)
tree05eabd9c5ace4f7283f53fcb909623a1ae2a3240 /activerecord/test/models/post.rb
parent6ca921a98cefa2bce67486f1ba2a8f52f4170d78 (diff)
downloadrails-3e64336647fefe598ff3b0775401e2c2c5d378d3.tar.gz
rails-3e64336647fefe598ff3b0775401e2c2c5d378d3.tar.bz2
rails-3e64336647fefe598ff3b0775401e2c2c5d378d3.zip
removing SQL interpolation, please use scoping and attribute conditionals as a replacement
Diffstat (limited to 'activerecord/test/models/post.rb')
-rw-r--r--activerecord/test/models/post.rb3
1 files changed, 0 insertions, 3 deletions
diff --git a/activerecord/test/models/post.rb b/activerecord/test/models/post.rb
index 0083560ebe..b51f7ff48f 100644
--- a/activerecord/test/models/post.rb
+++ b/activerecord/test/models/post.rb
@@ -40,9 +40,6 @@ class Post < ActiveRecord::Base
has_many :author_favorites, :through => :author
has_many :author_categorizations, :through => :author, :source => :categorizations
- has_many :comments_with_interpolated_conditions, :class_name => 'Comment',
- :conditions => ['#{"#{aliased_table_name}." rescue ""}body = ?', 'Thank you for the welcome']
-
has_one :very_special_comment
has_one :very_special_comment_with_post, :class_name => "VerySpecialComment", :include => :post
has_many :special_comments