For the life of me I cannot understand why in a controller that inherits from RestfulController, that the index method only returns 4 rows. Is this a default setting? The same behavior happens when I override the method, like so.
import grails.rest.*
import grails.converters.*
class WidgitController extends RestfulController {
static responseFormats = ['json', 'xml']
WidgitController() {
super(Widgit)
}
@Override
def index() {
def w = Widgit.findAllWhere(isEnabled: true, [max: 10]) //w: sizec4
def w2 = listAllResources(params) //w2: size 4
respond w
}
}
Any help would be appreciated.