Files
danbooru/app/controllers/maintenance/user/count_fixes_controller.rb
evazion ff92b32f02 users: add /profile page (fix #4151).
* Add /profile, /profile.json endpoints.
* Make "My Account" link to /profile.
* Add 'User ID' field to profile page.
2019-09-01 15:00:23 -05:00

17 lines
320 B
Ruby

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 profile_path
end
end
end
end