tab/app/controllers/users_controller.rb
Ilion Beyst a3a7ff8c44 Revert "Merge branch 'master' into filter-datatables"
This reverts commit 78863c40b7, reversing
changes made to bbaa070cca.
2015-09-10 22:25:52 +02:00

18 lines
343 B
Ruby

class UsersController < ApplicationController
load_and_authorize_resource
def show
@user = User.find(params[:id])
respond_to do |format|
format.html
format.json do
datatable = DataTable.new(@user, params)
render json: datatable.json
end
end
end
def index
@users = User.all
end
end