Browse Source

lk | bike name includes color & log number

master
Louis Knapp 9 years ago
parent
commit
a58569a1a8
  1. 2
      app/models/bike.rb
  2. 5
      config/initializers/date_time.rb
  3. 7
      notes.txt

2
app/models/bike.rb

@ -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

5
config/initializers/date_time.rb

@ -0,0 +1,5 @@
# Date
Date::DATE_FORMATS[:default] = "%m/%d/%Y"
# Time
Time::DATE_FORMATS[:default] = "%m/%d/%Y"

7
notes.txt

@ -1,3 +1,10 @@
print sales labels should not show freecyclery bikes
show log number next to bikes (color model make lognumber)
search for bike based on log #
convert to bootstrap-less or something

Loading…
Cancel
Save