Updated provider for rails to work better.