rails4 handles serialization