From 87ae85d5360ac8965f2467680e556c1f94806ba8 Mon Sep 17 00:00:00 2001 From: Aaron Patterson Date: Mon, 20 Dec 2010 18:33:55 -0800 Subject: returning id (for some yet to be discovered reason) --- activerecord/lib/active_record/attribute_methods/primary_key.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/activerecord/lib/active_record/attribute_methods/primary_key.rb b/activerecord/lib/active_record/attribute_methods/primary_key.rb index c016e936cb..b891b2c50e 100644 --- a/activerecord/lib/active_record/attribute_methods/primary_key.rb +++ b/activerecord/lib/active_record/attribute_methods/primary_key.rb @@ -24,7 +24,7 @@ module ActiveRecord end def get_primary_key(base_name) #:nodoc: - return unless base_name && !base_name.blank? + return 'id' unless base_name && !base_name.blank? case primary_key_prefix_type when :table_name -- cgit v1.2.3