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

This commit is contained in:
Jon Leighton
2011-11-30 16:06:42 +00:00
parent 6c63f1aa44
commit efcc95acb7

View File

@@ -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