mirror of
https://github.com/fspc/bike-database.git
synced 2025-04-04 10:03:22 -04:00
21 lines
412 B
Ruby
21 lines
412 B
Ruby
class FreecycleryController < ApplicationController
|
|
before_action :authenticate_user!
|
|
|
|
def closed_applications
|
|
@closed_applications = Client.closed_applications
|
|
end
|
|
|
|
def ready_for_pickup
|
|
@bikes_for_pickup = Bike.bikes_ready_for_pickup
|
|
end
|
|
|
|
def available_bikes
|
|
@available_bikes = Bike.available_for_freecyclery
|
|
end
|
|
|
|
def receipt
|
|
@client = Client.find(params[:client_id])
|
|
end
|
|
|
|
end
|