mirror of
https://github.com/fspc/bike-database.git
synced 2026-09-16 08:31:39 -04:00
lk | bike name includes color & log number
This commit is contained in:
+1
-1
@@ -7,7 +7,7 @@ class Bike < ActiveRecord::Base
|
||||
validates :serial_number, presence: true
|
||||
|
||||
def name
|
||||
self.brand + ' ' + self.model
|
||||
self.color + " " + self.brand + ' ' + self.model + " (" + self.log_number.to_s + ")"
|
||||
end
|
||||
|
||||
def client
|
||||
|
||||
Reference in New Issue
Block a user