From 081ddb6f24d70794ee9e071d3ed5302f52b26c4d Mon Sep 17 00:00:00 2001 From: Rick Olson Date: Mon, 24 Mar 2008 02:50:02 +0000 Subject: Merge the has_finder gem, renamed as 'named_scope'. Closes #11404 [nkallen] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9084 5ecf4fe2-1ee6-0310-87b1-e25e094e27de --- activerecord/test/models/comment.rb | 2 ++ 1 file changed, 2 insertions(+) (limited to 'activerecord/test/models/comment.rb') diff --git a/activerecord/test/models/comment.rb b/activerecord/test/models/comment.rb index 73ebdadf73..f7f07c103f 100644 --- a/activerecord/test/models/comment.rb +++ b/activerecord/test/models/comment.rb @@ -1,4 +1,6 @@ class Comment < ActiveRecord::Base + named_scope :containing_the_letter_e, :conditions => "comments.body LIKE '%e%'" + belongs_to :post, :counter_cache => true def self.what_are_you -- cgit v1.2.3