2020-01-21 21:07:58 +00:00
|
|
|
class Settings::ExpensesController < Admin::BaseController
|
|
|
|
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])
|
2020-01-21 21:07:58 +00:00
|
|
|
redirect_to settings_expenses_path
|
|
|
|
end
|
|
|
|
|
|
|
|
end
|