use rails4 find_by method when available