fixes #3757
This commit is contained in:
16
app/controllers/maintenance/user/count_fixes_controller.rb
Normal file
16
app/controllers/maintenance/user/count_fixes_controller.rb
Normal file
@@ -0,0 +1,16 @@
|
||||
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
|
||||
Reference in New Issue
Block a user