Permit nested conditions.

This commit is contained in:
Martin Edenhofer 2014-09-01 15:09:43 +02:00
parent 2ab5448480
commit 7cbfc4aa92

View file

@ -355,6 +355,9 @@ class TicketsController < ApplicationController
# GET /api/v1/tickets/search # GET /api/v1/tickets/search
def search def search
# permit nested conditions
params.require(:condition).permit!
# build result list # build result list
tickets = Ticket.search( tickets = Ticket.search(
:limit => params[:limit], :limit => params[:limit],