summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorStefan Wintermeyer <stefan.wintermeyer@amooma.de>2013-06-28 15:15:43 +0200
committerStefan Wintermeyer <stefan.wintermeyer@amooma.de>2013-06-28 15:15:43 +0200
commit9f23443a86ad145c2739ac289e42ac0f13ef0929 (patch)
tree60fe3e06783a54ad9361620fc7fd35429aa7069d /app
parentd95155baebf7004bfc99c13545e343b8bd0882b6 (diff)
Limit the searchresult to 20 entries.
Diffstat (limited to 'app')
-rw-r--r--app/controllers/api/v1/phone_book_entries_controller.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/api/v1/phone_book_entries_controller.rb b/app/controllers/api/v1/phone_book_entries_controller.rb
index 7cae5a5..cae3259 100644
--- a/app/controllers/api/v1/phone_book_entries_controller.rb
+++ b/app/controllers/api/v1/phone_book_entries_controller.rb
@@ -66,7 +66,7 @@ module Api
# Let's sort the results and do pagination.
#
phone_book_entries = phone_book_entries.
- order([ :last_name, :first_name, :organization ])
+ order([ :last_name, :first_name, :organization ]).limit(20)
respond_with phone_book_entries
end