micheldoumit / tripvise

0 stars 0 forks source link

não precisa de 2 where #24

Closed marciotoze closed 9 years ago

marciotoze commented 9 years ago

não é necessario passar 2 where. Recommendation.where(trip: object.trip, recommender: object.user) funciona tranquilamente

commit file reference
b394fc0f55a0ac9c7bb46f2a26c279598f8004e6 f8047132acfbfe4b011d71bd485ee629db611032/app/serializers/recommender_serializer.rb#L8 #22
MarcusSky commented 9 years ago

boa, não sabia :+1: