Gab-Social/app/controllers/admin/expenses_controller.rb
2021-01-16 13:36:19 -05:00

16 lines
312 B
Ruby

class Admin::ExpensesController < Admin::BaseController
def index
Redis.current.with do |conn|
@amount = conn.get("monthly_funding_amount") || 0
end
end
def create
Redis.current.with do |conn|
conn.set("monthly_funding_amount", params[:amount])
end
redirect_to admin_expenses_path
end
end