app/controllers/apicasso/crud_controller.rb in apicasso-0.4.3 vs app/controllers/apicasso/crud_controller.rb in apicasso-0.4.4

- old
+ new

@@ -151,10 +151,10 @@ # The response for index action, which can be a pagination of a record collection # or a grouped count of attributes def index_json if params[:group].present? - @records.group(params[:group][:by].split(',')).send(params[:group][:calculate], params[:group][:fields]||params[:group][:by].split(',')) + @records.group(params[:group][:by].split(',')).send(:calculate, params[:group][:calculate], params[:group][:field]) else collection_response end end