I have this type of code where I used a modeling like
'user.profile_photo' from user object I am trying to find profile
photo.but it is happened in a loop so just I want to know that how
modeling works ? Internally it is a query if so then executing such
thing inside a loop is a expensive. so when to use query and when to use
modeling any feasible solution for a such a problem.
for user in group_users
@profile_user << user