Use polyamorous in version 1.0.0
Adapt ActiveRecord in 4.1.0 version