This is on rails 4.2.11.3. I have a has_many through relationship set up like this:
has_many
through
class ProgramCourse < ActiveRecord::Base be