Rails update for security