Permalink
Browse files

clean up cart item

  • Loading branch information...
1 parent bd0ab3d commit e857aad0ce8aba009639760bfa25d99b98f9162d @sebdumont sebdumont committed Mar 14, 2011
Showing with 5 additions and 1 deletion.
  1. +3 −0 .gitignore
  2. +1 −1 app/models/cart_item.rb
  3. +1 −0 config/locales/admin/product/fr.yml
View
3 .gitignore
@@ -0,0 +1,3 @@
+*.swo
+*.swp
+*~
View
2 app/models/cart_item.rb
@@ -14,7 +14,7 @@ def total
end
def quantity
- return self.cart.carts_products.count('product_id', :conditions => {:product_id => self.product.id})
+ return self.cart.cart_items.count('product_id', :conditions => {:product_id => self.product.id})
end
# Returns total tax for this <i>Product</i>
View
1 config/locales/admin/product/fr.yml
@@ -1,5 +1,6 @@
fr:
product:
+ zero: produit
one : produit
other: produits
all: tous les produits

0 comments on commit e857aad

Please sign in to comment.