This is just an extraction from Ransack/Squeel. You probably don't want to use this directly. It extends ActiveRecord's associations to support polymorphic belongs_to associations.
Ernie Miller
gem "polyamorous", "~> 0.5.0"