Method: Extension::ClassMethods#fastapi_define_order

Defined in:
lib/fastapi/extension.rb

#fastapi_define_order(keys) ⇒ Hash

Define custom ORDER BY strings for specific keys

Parameters:

  • keys (Hash)

    a hash containing the keys: strings for order filters

Returns:

  • (Hash)

    the same keys hash



44
45
46
# File 'lib/fastapi/extension.rb', line 44

def fastapi_define_order(keys)
  @fastapi_custom_order = keys
end