Hello,
I have code like this
def items
my_items = self.items
if self.added_items
self.added_items.each do |ai|
my_items.push(as.item)
end
end
return my_items
end
the added items are a join table when you connect to other users
items. Then im trying to display the complied list. but when doing
this, it changes the user_id of the added item from the user that
created to the current_user.
not fully understanding why, or if there is a better way to handle
this.
any help would be greatly appreciated.