Method: FastAPI::Wrapper#whitelist

Defined in:
lib/fastapi.rb

#whitelist(fields = []) ⇒ FastAPI

Create and execute an optimized SQL query based on specified filters

Parameters:

  • fields (Array) (defaults to: [])

    an array containing fields to whitelist for the SQL query. Can also pass in fields as arguments.

Returns:

  • (FastAPI)

    the current instance



32
33
34
35
36
# File 'lib/fastapi.rb', line 32

def whitelist(fields = [])
  @whitelist_fields.concat(fields)

  self
end