Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Implemented `find` method in HasMany association

  • Loading branch information...
commit 7181c8bb64e0293b6964903484a7aa71df333564 1 parent 6b5a25d
@serebryakov serebryakov authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/lib/associations/has_many.rb
View
4 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
##
Please sign in to comment.
Something went wrong with that request. Please try again.