mirror of
https://github.com/fspc/bike-database.git
synced 2026-09-16 08:31:39 -04:00
lk | adds explanatory text to waiting list & disables mark_as_sold button for sold bikes, and removes unused columns
This commit is contained in:
@@ -25,6 +25,10 @@ class Bike < ActiveRecord::Base
|
||||
]
|
||||
end
|
||||
|
||||
def sold?
|
||||
date_sold.present?
|
||||
end
|
||||
|
||||
def name
|
||||
self.color + " " + self.brand + ' ' + self.model + " (" + self.log_number.to_s + ")"
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user