Skip to content

Commit 4e02a33

Browse files
committed
revert
1 parent 5fa6c05 commit 4e02a33

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

app/controllers/users_controller.rb

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
class UsersController < ApplicationController
2+
23
def index
34
if current_user.super_user?
45
@users = User.paginate(page: params[:page], per_page: 25)
@@ -18,7 +19,7 @@ def create
1819
set_password
1920
if @user.save
2021
@user.notifications.create(notification_type: 0)
21-
flash[:alert] = "User has been created."
22+
flash[:alert] = 'User has been created.'
2223
redirect_to users_path
2324
else
2425
render :new
@@ -56,10 +57,10 @@ def update
5657

5758
if @user.update(user_params)
5859
# @user.notifications.create(notification_type: 1)
59-
flash[:alert] = "User updated."
60+
flash[:alert] = 'User updated.'
6061
redirect_to users_path
6162
else
62-
flash[:alert] = "Unable to update user."
63+
flash[:alert] = 'Unable to update user.'
6364
render :edit
6465
end
6566
end

0 commit comments

Comments
 (0)