I've got a rather weird case. I have a few models that are tied together via associations one of these associations allows the user model to access referenced job data directly with the job model. However, the second case allows the user model to access the job data via the locations model.
User has_and_belongs_to_many :jobs
User has_many :jobs through: :locations
So how do I need to distinguish these two lines of code so that User.jobs
uses the first association and User.jobs_through_locations
uses the second association?