You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
def is_adopted?
adopter_applications.any? { |app| app.status == "adoption_made" }
end
The single source of truth on an adoption should be the Match model, where the match_type is adoption. Please update the method to query the pet's matches instead.
The text was updated successfully, but these errors were encountered:
We have this instance method on
Pet
def is_adopted?
adopter_applications.any? { |app| app.status == "adoption_made" }
end
The single source of truth on an adoption should be the
Match
model, where thematch_type
isadoption
. Please update the method to query the pet's matches instead.The text was updated successfully, but these errors were encountered: