2021-01-13 23:06:45 +00:00
|
|
|
class Admin::ExpensesController < Admin::BaseController
|
2020-01-21 21:07:58 +00:00
|
|
|
def index
|
2021-01-16 18:36:19 +00:00
|
|
|
Redis.current.with do |conn|
|
|
|
|
@amount = conn.get("monthly_funding_amount") || 0
|
|
|
|
end
|
2020-01-21 21:07:58 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
def create
|
2021-01-16 18:36:19 +00:00
|
|
|
Redis.current.with do |conn|
|
|
|
|
conn.set("monthly_funding_amount", params[:amount])
|
|
|
|
end
|
2021-01-13 23:06:45 +00:00
|
|
|
redirect_to admin_expenses_path
|
2020-01-21 21:07:58 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
end
|