fix counter cache hack for polymorphic associations on rails 5.0
fix counter cache hack for polymorphic associations on rails 5.0

activescaffold/active_scaffold,activescaffold/active_scaffold,activescaffold/active_scaffold