Browse files

Ruby 1.9.2: Object#id is gone now

  • Loading branch information...
1 parent 2013874 commit 482a6f716fab5ea6431e15ee2603b62a1b2f0790 @jeremy jeremy committed Aug 7, 2009
Showing with 1 addition and 1 deletion.
  1. +1 −1 activerecord/lib/active_record/attribute_methods/read.rb
View
2 activerecord/lib/active_record/attribute_methods/read.rb
@@ -12,7 +12,7 @@ module Read
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
+ undef_method(:id) if method_defined?(:id)
end
module ClassMethods

0 comments on commit 482a6f7

Please sign in to comment.