mirror of
https://github.com/fspc/bike-database.git
synced 2026-09-16 08:31:39 -04:00
lk | all freecyclery bikes present in client drop-down, and they save
This commit is contained in:
+1
-1
@@ -24,7 +24,7 @@ class Bike < ActiveRecord::Base
|
||||
end
|
||||
|
||||
def self.available_for_freecyclery
|
||||
Bike.all.select{|bike| bike.completion_date && (bike.purpose == "Freecyclery") && !bike.client }
|
||||
Bike.order(log_number: :desc).select{|bike| bike.completion_date && (bike.purpose == "Freecyclery")}
|
||||
end
|
||||
|
||||
def mark_picked_up
|
||||
|
||||
Reference in New Issue
Block a user