clarion/app/controllers/management/users_controller.rb
2015-05-10 12:36:29 +02:00

24 lines
358 B
Ruby

module Management
class UsersController < ManagementController
def index
@users = User.all
end
def toggle_admin
@user = find_user
@user.toggle_admin!
end
def show
@user = find_user
@profile = @user.speaker_profile
end
private
def find_user
User.find(params[:id])
end
end
end