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