created a very ugly report
This commit is contained in:
@@ -7,6 +7,10 @@ class ItemInCart < ActiveRecord::Base
|
||||
validates :cart_id, presence: true
|
||||
|
||||
def name
|
||||
item.name + " " + count.to_s + " " + price.to_s
|
||||
if item
|
||||
item.name + " " + count.to_s + " " + price.to_s
|
||||
else
|
||||
" no item "
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user