class RailsAiAdmin::Field
Declares one scalar input/output contract. All presentation and query flags only narrow the permissions returned by the host policy.
Constants
- BLANK
-
Input text that is empty or only whitespace is blank (RAA-002/003).
- CONTENT_TYPE
- DATETIME
-
A practical address check (Rails’ own URI::MailTo pattern), not delivery proof.
- FILE_TYPES
-
Upload fields and their default bound on attached files.
- FILTER_OPERATORS
-
Typed list filter operators. Text-like values only support exact equality; contains/prefix matching stays with search.
- MAX_FILES
- MAX_FILE_SIZE
-
Default upload bound for a file field: 10 MB.
- MAX_NUMBER_TEXT
-
Upper bound for decimal wire text, matching the integer bound.
- MAX_REFERENCES
-
A references field holds at most this many keys.
- MAX_RICH_TEXT
-
Rich text is stored HTML; its bound is larger than other text.
- NAME
- OPTIONS
- PLUGIN_EXCLUDED
-
Registered types refine plain scalars only.
- RANGE_TYPES
- REFERENCE
-
A belongs_to value is the target’s opaque primary-key text, never a record.
- REFERENCE_TYPES
-
Fieldswhose value names records of another resource. - TEXTAREA_CONTROLS
- TEXT_CONTROLS
-
NUL and other C0 controls are never accepted in single-line text; a textarea additionally admits tab, line feed and carriage return (RAA-016).
- TEXT_TYPES
-
Text-like scalars share text coercion, search and equality filters.
- TIME_OF_DAY
- TYPES
- UNQUERYABLE_TYPES
-
Never listed, searched, sorted or filtered: a password is write-only and JSON has no stable text or ordering.