fix rails4 auth issue