aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/attribute_methods
diff options
context:
space:
mode:
authorJon Leighton <j@jonathanleighton.com>2011-12-16 11:46:34 +0000
committerJon Leighton <j@jonathanleighton.com>2011-12-16 13:52:07 +0000
commit0b08ff7d92124cc370e9f0795d1559204f04f9a4 (patch)
tree3f7e8a98b782952e12d872f20cb7603d1b014d13 /activerecord/lib/active_record/attribute_methods
parent4fe76f4f272571bb88aa54af1d7e6bcad413c6e1 (diff)
downloadrails-0b08ff7d92124cc370e9f0795d1559204f04f9a4.tar.gz
rails-0b08ff7d92124cc370e9f0795d1559204f04f9a4.tar.bz2
rails-0b08ff7d92124cc370e9f0795d1559204f04f9a4.zip
Cache columns at the model level.
Allows two models to use the same table but have different primary keys.
Diffstat (limited to 'activerecord/lib/active_record/attribute_methods')
-rw-r--r--activerecord/lib/active_record/attribute_methods/primary_key.rb2
1 files changed, 0 insertions, 2 deletions
diff --git a/activerecord/lib/active_record/attribute_methods/primary_key.rb b/activerecord/lib/active_record/attribute_methods/primary_key.rb
index 0560f63949..e3c7344f59 100644
--- a/activerecord/lib/active_record/attribute_methods/primary_key.rb
+++ b/activerecord/lib/active_record/attribute_methods/primary_key.rb
@@ -102,8 +102,6 @@ module ActiveRecord
@original_primary_key = @primary_key if defined?(@primary_key)
@primary_key = value && value.to_s
@quoted_primary_key = nil
-
- connection.schema_cache.primary_keys[table_name] = @primary_key if connected?
end
def set_primary_key(value = nil, &block) #:nodoc: