Permalink
Browse files

No longer need to undef id as we are defining it ourselves

  • Loading branch information...
1 parent 6c63f1a commit efcc95acb71a68b9edd7c7c77550abdf412cc5ad @jonleighton jonleighton committed Nov 30, 2011
Showing with 0 additions and 3 deletions.
  1. +0 −3 activerecord/lib/active_record/attribute_methods/read.rb
@@ -8,9 +8,6 @@ module Read
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

0 comments on commit efcc95a

Please sign in to comment.