gab-social/app/controllers/admin/expenses_controller.rb
mgabdev 8aeae9c45d Updated routes for admins dashboard
• Updated:
- routes for admins dashboard (expenses, group categories, promotions, trending hashtags) that were in the /settings path but are now in the /admin path
- /filters to be in /settings/filters

• Removed:
- authorize_follow route
2021-01-13 18:06:45 -05:00

12 lines
258 B
Ruby

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