Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Ruby 1.9.2: Object#id is gone now

  • Loading branch information...
commit 482a6f716fab5ea6431e15ee2603b62a1b2f0790 1 parent 2013874
@jeremy jeremy authored
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
Please sign in to comment.
Something went wrong with that request. Please try again.