tab/app/controllers/users_controller.rb
2015-09-09 14:46:06 +02:00

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