Open krainboltgreene opened 8 years ago
Like, I get why you might want this, but it make testing just that much harder since I now have to create an entire cart object graph to satisfy a single monkey patch.
This annoyed me simply because I was trying to check if a user had a cart through user.cart.present?
. The user had a cart but present?
was returning false with this gem because the cart was empty.
@krainboltgreene You can use my organization's fork for now if you prefer. Nothing's changed except empty?
removed from the Collection module.
Crap! you are correct. I have removed the empty?
method in favor of has_items?
and has_no_items?
.
This change will be included in its next release, but the official repo of this gem is over here: https://github.com/dabit/acts_as_shopping_cart
This was pretty annoying to run into :/