rails/rails — pull request #17267 by rebyn (2014-10-15 12:45:26+00:00)
Title: Raise an error for has_one associations which try to go :through a polymorphic association

This PR addresses the missing exception dedicated to `has_one` associations which try to go :through a polymorphic association.

Issue raised by @georgemillo in #17263.