forked from e621ng/e621ng
19 lines
364 B
Ruby
19 lines
364 B
Ruby
# frozen_string_literal: true
|
|
|
|
module Maintenance
|
|
module User
|
|
class CountFixesController < ApplicationController
|
|
before_action :member_only
|
|
|
|
def new
|
|
end
|
|
|
|
def create
|
|
CurrentUser.user.refresh_counts!
|
|
flash[:notice] = "Counts have been refreshed"
|
|
redirect_to user_path(CurrentUser.id)
|
|
end
|
|
end
|
|
end
|
|
end
|