app/models/piggybak/sellable.rb in piggybak-0.6.18 vs app/models/piggybak/sellable.rb in piggybak-0.6.19
- old
+ new
@@ -11,10 +11,10 @@
validates_numericality_of :quantity, :only_integer => true, :greater_than_or_equal_to => 0
has_many :line_items, :as => :reference, :inverse_of => :reference
def admin_label
- "Sellable: #{self.description}"
+ self.description
end
def update_inventory(purchased)
self.update_attribute(:quantity, self.quantity + purchased)
end