Active Record Queries: Specifying Conditions on Associations
I ran into a ‘gotcha’ this week while setting up an active record query that already had an eager loaded association. My goal was to only find objects that had an appointment time from the current time until the end of the day. In this case, appointments were the association and the objects were already […]