Workbench explicitly requests 1000 results instead of getting the default
authorPeter Amstutz <peter.amstutz@curoverse.com>
Fri, 10 Jan 2014 20:35:29 +0000 (15:35 -0500)
committerPeter Amstutz <peter.amstutz@curoverse.com>
Fri, 10 Jan 2014 20:35:29 +0000 (15:35 -0500)
result list from the API server (which is only 100 results)

apps/workbench/app/controllers/application_controller.rb

index b4da696bc05f78cd9037f98baccb824069c4f07e..b7d377572d4b21e73cd19399835b842d2fa13c2e 100644 (file)
@@ -51,7 +51,7 @@ class ApplicationController < ActionController::Base
 
 
   def index
-    @objects ||= model_class.all
+    @objects ||= model_class.limit(1000).all
     respond_to do |f|
       f.json { render json: @objects }
       f.html { render }