rails/rails — pull request #16550 by eileencodes (2014-08-19 00:07:54+00:00)
Title: Remove to_s from reflection.type in add_constraints

The instance var is already saved as a string in the initialization
method of AssociationReflection.

See https://github.com/rails/rails/blob/master/activerecord/lib/active_record/reflection.rb#L273