fix deprecation in association for rails4