diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2010-12-20 18:33:55 -0800 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2010-12-20 19:47:15 -0800 |
commit | 87ae85d5360ac8965f2467680e556c1f94806ba8 (patch) | |
tree | a7423eb3b84732316c24295f90e21150991bee8b | |
parent | 207f266ccaaa9cd04cd2a7513ae5598c4358b510 (diff) | |
download | rails-87ae85d5360ac8965f2467680e556c1f94806ba8.tar.gz rails-87ae85d5360ac8965f2467680e556c1f94806ba8.tar.bz2 rails-87ae85d5360ac8965f2467680e556c1f94806ba8.zip |
returning id (for some yet to be discovered reason)
-rw-r--r-- | activerecord/lib/active_record/attribute_methods/primary_key.rb | 2 |
1 files changed, 1 insertions, 1 deletions
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 |