upgrade to rails 4 and add device to email