Update Admin user datatables to use AJAX

This commit is contained in:
James Mason 2018-06-18 10:04:17 -07:00 committed by Henne Vogelsang
parent 600e394cf8
commit 64ceaf50f4
6 changed files with 290 additions and 53 deletions

View file

@ -20,7 +20,12 @@ module Admin
end
def index
@users = User.all
respond_to do |format|
format.html
format.json do
render json: UserDatatable.new(view_context)
end
end
end
# This action allow admins to manually toggle confirmation state of another user