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