class ActiveFedora::Associations::CollectionProxy
def find(*args, &block)
# #
# #
# => [
person.pets.find(2, 3)
# => #
person.pets.find(2) { |pet| pet.name.downcase! }
person.pets.find(4) # => ActiveFedora::RecordNotFound: Couldn't find Pet with id=4
person.pets.find(1) # => #
# ]
# #
# #
# #
# => [
person.pets
end
has_many :pets
class Person < ActiveFedora::Base
error if the object can not be found.
rules as ActiveFedora::Base.find. Returns ActiveFedora::RecordNotFound
Finds an object in the collection responding to the +id+. Uses the same
def find(*args, &block) @association.find(*args, &block) end