pre-rails4 syntax converting