2015-09-08 13:14:46 +00:00
|
|
|
class UsersController < ApplicationController
|
2015-09-08 15:40:40 +00:00
|
|
|
load_and_authorize_resource
|
|
|
|
|
2015-09-08 15:28:46 +00:00
|
|
|
def show
|
|
|
|
@user = User.find(params[:id])
|
2015-09-08 18:45:32 +00:00
|
|
|
respond_to do |format|
|
|
|
|
format.html
|
|
|
|
format.json { render json: TransactionDatatable.new(
|
|
|
|
view_context, {user: @user})
|
|
|
|
}
|
|
|
|
end
|
2015-09-08 15:28:46 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
def index
|
|
|
|
@users = User.all
|
|
|
|
end
|
2015-09-08 13:14:46 +00:00
|
|
|
end
|