lk | bike name includes color & log number

This commit is contained in:
Louis Knapp
2015-10-10 12:24:03 -05:00
parent 2ac95bd99b
commit a58569a1a8
3 changed files with 13 additions and 1 deletions
+1 -1
View File
@@ -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