I have a simple model
class User has_many :logs class Logs
related in the usual way through the foreign key logs.user_id. I\'m trying to
You can use join_sources to retrieve the Arel::Nodes::Join from the instance of Arel::SelectManager, and pass that to joins
Using your example:
l_t.joins(counts.join_sources).on(l_t[:id].eq(counts[:user_id]))