mirror of
https://github.com/fspc/bike-database.git
synced 2026-09-16 08:31:39 -04:00
lk | adds youth as bike type & doesn't post to bike index
This commit is contained in:
@@ -5,7 +5,6 @@ class Bike < ActiveRecord::Base
|
||||
validates :bike_type, presence: true
|
||||
validates :color, presence: true
|
||||
validates :serial_number, presence: true
|
||||
after_save :post_to_bike_index
|
||||
|
||||
def name
|
||||
self.brand + ' ' + self.model
|
||||
@@ -37,5 +36,4 @@ class Bike < ActiveRecord::Base
|
||||
return true if self.bike_index_id.present?
|
||||
BikeIndexLogger.perform_async(self.id)
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user