mirror of
https://github.com/fspc/bike-database.git
synced 2025-02-23 09:33:23 -05:00
lk | bike name includes color & log number
This commit is contained in:
parent
2ac95bd99b
commit
a58569a1a8
@ -7,7 +7,7 @@ class Bike < ActiveRecord::Base
|
|||||||
validates :serial_number, presence: true
|
validates :serial_number, presence: true
|
||||||
|
|
||||||
def name
|
def name
|
||||||
self.brand + ' ' + self.model
|
self.color + " " + self.brand + ' ' + self.model + " (" + self.log_number.to_s + ")"
|
||||||
end
|
end
|
||||||
|
|
||||||
def client
|
def client
|
||||||
|
5
config/initializers/date_time.rb
Normal file
5
config/initializers/date_time.rb
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
# Date
|
||||||
|
Date::DATE_FORMATS[:default] = "%m/%d/%Y"
|
||||||
|
|
||||||
|
# Time
|
||||||
|
Time::DATE_FORMATS[:default] = "%m/%d/%Y"
|
Loading…
x
Reference in New Issue
Block a user