I'm looking for a simple way to query updated_at
through the associations of an ActiveRecord model. Specifically, I want to be able to query for the records OR related records (belongs_to
, has_many
) that have changed since a certain date.
I know that I could use the :touch
option on the associations to update, but because I have lots of different relations so I don't want to do so — it would escalate quickly through cascading relationships.