aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/attribute_methods
diff options
context:
space:
mode:
authorJon Leighton <j@jonathanleighton.com>2011-11-30 16:06:42 +0000
committerJon Leighton <j@jonathanleighton.com>2011-11-30 23:18:40 +0000
commitefcc95acb71a68b9edd7c7c77550abdf412cc5ad (patch)
treed47edc5b77806d66c672730577e49711f9416404 /activerecord/lib/active_record/attribute_methods
parent6c63f1aa44780c887dd3e52765e86588911c2802 (diff)
downloadrails-efcc95acb71a68b9edd7c7c77550abdf412cc5ad.tar.gz
rails-efcc95acb71a68b9edd7c7c77550abdf412cc5ad.tar.bz2
rails-efcc95acb71a68b9edd7c7c77550abdf412cc5ad.zip
No longer need to undef id as we are defining it ourselves
Diffstat (limited to 'activerecord/lib/active_record/attribute_methods')
-rw-r--r--activerecord/lib/active_record/attribute_methods/read.rb3
1 files changed, 0 insertions, 3 deletions
diff --git a/activerecord/lib/active_record/attribute_methods/read.rb b/activerecord/lib/active_record/attribute_methods/read.rb
index d3ef7f0ae5..69507b5838 100644
--- a/activerecord/lib/active_record/attribute_methods/read.rb
+++ b/activerecord/lib/active_record/attribute_methods/read.rb
@@ -8,9 +8,6 @@ module ActiveRecord
included do
cattr_accessor :attribute_types_cached_by_default, :instance_writer => false
self.attribute_types_cached_by_default = ATTRIBUTE_TYPES_CACHED_BY_DEFAULT
-
- # Undefine id so it can be used as an attribute name
- undef_method(:id) if method_defined?(:id)
end
module ClassMethods