Permalink
Browse files

Implemented `find` method in HasMany association

  • Loading branch information...
1 parent 6b5a25d commit 7181c8bb64e0293b6964903484a7aa71df333564 @serebryakov serebryakov committed May 28, 2010
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/lib/associations/has_many.rb
@@ -72,8 +72,8 @@ def clear
# Finds an associated object according to the same rules as
# RDFMapper::Model.find.
##
- def find
- raise NotImplementedError, '`find` not yet implemented' # TODO
+ def find(*args)
+ @association.find(*args).from(value)
end
##

0 comments on commit 7181c8b

Please sign in to comment.