You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In some cases in useful get the last object added to Cart.
For example
item=@shopping_cart.add(obj)
Add the code to support previous is quite easy. Maybe you should ask why return the last object? I was working on an app where I need get this object due to the UI expected another action with this one.
The text was updated successfully, but these errors were encountered:
In some cases in useful get the last object added to Cart.
For example
Add the code to support previous is quite easy. Maybe you should ask why return the last object? I was working on an app where I need get this object due to the UI expected another action with this one.
The text was updated successfully, but these errors were encountered: