fix find_or_create_by for rails 4