Method: Anoubis::Etc::Data#fields

Defined in:
app/controllers/anoubis/etc/data.rb

#fieldsHash<Symbol, Field>?

Note:

Field’s options are placed in this attribute for actions ‘index’, ‘edit’, ‘update’, ‘create’ etc.

Returns current defined hash of model represented fields or nil if fields aren’t defined.

Returns:

  • (Hash<Symbol, Field>, nil)

    current defined hash of model represented fields or nil if fields aren’t defined



14
# File 'app/controllers/anoubis/etc/data.rb', line 14

class_attribute :fields, default: nil