From 761bc751d31c22e2c2fdae2b4cdd435b68b6d783 Mon Sep 17 00:00:00 2001 From: Toshiyuki Kawanishi Date: Sat, 15 Sep 2012 17:39:11 +0900 Subject: Fix find_in_batches with customized primary_key --- activerecord/test/models/post.rb | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'activerecord/test/models') diff --git a/activerecord/test/models/post.rb b/activerecord/test/models/post.rb index c995f59a15..9858f68c4a 100644 --- a/activerecord/test/models/post.rb +++ b/activerecord/test/models/post.rb @@ -186,3 +186,8 @@ class SpecialPostWithDefaultScope < ActiveRecord::Base self.table_name = 'posts' default_scope { where(:id => [1, 5,6]) } end + +class PostWithTitlePrimaryKey < ActiveRecord::Base + self.table_name = 'posts' + self.primary_key = :title +end -- cgit v1.2.3