diff options
| author | mo khan <mo@mokhan.ca> | 2014-11-21 17:04:57 -0700 |
|---|---|---|
| committer | mo khan <mo@mokhan.ca> | 2014-11-21 17:04:57 -0700 |
| commit | 8e250fb36f432ca0c575f8a669ec173d20aa7379 (patch) | |
| tree | 5741a11f8c637ed76fc82222e0d43718cd31639d /app/controllers/api | |
| parent | 6de9e0cf713db420716d57ae5c51d2428b776d86 (diff) | |
add specs for users.
Diffstat (limited to 'app/controllers/api')
| -rw-r--r-- | app/controllers/api/v2/users_controller.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/app/controllers/api/v2/users_controller.rb b/app/controllers/api/v2/users_controller.rb index eaa435b4..471069bb 100644 --- a/app/controllers/api/v2/users_controller.rb +++ b/app/controllers/api/v2/users_controller.rb @@ -1,6 +1,10 @@ module Api module V2 class UsersController < ApplicationController + def index + @users = User.page(page).per(per_page) + end + def show(id = params[:id]) @user = User.find(id) end |
