Show user's activity right on their profile screen
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
class UsersController < ApplicationController
|
||||
include UserTimelineScoped
|
||||
require_unauthenticated_access only: %i[ new create ]
|
||||
|
||||
before_action :set_user, only: %i[ show edit update destroy ]
|
||||
@@ -6,6 +7,7 @@ class UsersController < ApplicationController
|
||||
before_action :ensure_permission_to_change_user, only: %i[ update destroy ]
|
||||
|
||||
def index
|
||||
@filters = Current.user.filters.all
|
||||
@users = User.active
|
||||
end
|
||||
|
||||
@@ -19,9 +21,6 @@ class UsersController < ApplicationController
|
||||
redirect_to root_path
|
||||
end
|
||||
|
||||
def show
|
||||
end
|
||||
|
||||
def edit
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user