added suppliers, weight to item
This commit is contained in:
@@ -5,4 +5,8 @@ class ItemInCart < ActiveRecord::Base
|
||||
validates_uniqueness_of :item_id, scope: :cart_id
|
||||
validates :item_id, presence: true
|
||||
validates :cart_id, presence: true
|
||||
|
||||
def to_s
|
||||
item.name + " " + count.to_s + " " + price.to_s
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user