diff options
author | Stefan Wintermeyer <stefan.wintermeyer@amooma.de> | 2013-06-28 15:15:43 +0200 |
---|---|---|
committer | Stefan Wintermeyer <stefan.wintermeyer@amooma.de> | 2013-06-28 15:15:43 +0200 |
commit | 9f23443a86ad145c2739ac289e42ac0f13ef0929 (patch) | |
tree | 60fe3e06783a54ad9361620fc7fd35429aa7069d | |
parent | d95155baebf7004bfc99c13545e343b8bd0882b6 (diff) |
Limit the searchresult to 20 entries.
-rw-r--r-- | app/controllers/api/v1/phone_book_entries_controller.rb | 2 |
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 |