Permalink
Browse files

Additional check in Model's `id` to get rid of 'deprecated' messages

  • Loading branch information...
1 parent 78612f3 commit 31af70480aacb3750277ce5f263d14cb22c30b11 @serebryakov serebryakov committed May 28, 2010
Showing with 1 addition and 0 deletions.
  1. +1 −0 lib/lib/model/base.rb
View
@@ -460,6 +460,7 @@ def id(*args)
# @return [Boolean]
##
def ==(other)
+ return false unless other.kind_of? self.class
(other.nil? or other.id.nil?) ? false : (id == other.id)
end

0 comments on commit 31af704

Please sign in to comment.