Permit nested conditions.
This commit is contained in:
parent
2ab5448480
commit
7cbfc4aa92
1 changed files with 3 additions and 0 deletions
|
@ -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],
|
||||||
|
|
Loading…
Reference in a new issue