changed do block in single line in constantize_and_iterate method in the user model