17 lines
311 B
Ruby
17 lines
311 B
Ruby
class UsersController < ApplicationController
|
|
load_and_authorize_resource
|
|
|
|
include DataTable
|
|
|
|
def show
|
|
@user = User.find(params[:id])
|
|
respond_to do |format|
|
|
format.html
|
|
format.json { render json: apply_filter(@user, params) }
|
|
end
|
|
end
|
|
|
|
def index
|
|
@users = User.all
|
|
end
|
|
end
|