gab-social/app/controllers/settings/expenses_controller.rb

12 lines
268 B
Ruby
Raw Normal View History

2020-01-21 21:07:58 +00:00
class Settings::ExpensesController < Admin::BaseController
def index
@ammount = Redis.current.get("monthly_funding_ammount") || 0
end
def create
Redis.current.set("monthly_funding_ammount", params[:ammount])
redirect_to settings_expenses_path
end
end