Method: Graphiti::Errors::AttributeError#action

Defined in:
lib/graphiti/errors.rb

#actionObject



313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
# File 'lib/graphiti/errors.rb', line 313

def action
  if @request
    {
      sortable: "sort on",
      filterable: "filter on",
      readable: "read",
      writable: "write",
    }[@flag]
  else
    {
      sortable: "add sort",
      filterable: "add filter",
      readable: "read",
      writable: "write",
    }[@flag]
  end
end