Skip to content

Allow to define default options for each field #2085

Open
@Paul-Bob

Description

@Paul-Bob

From here.

Implement a system to make possible for each project to define it's own default values. For example on belongs_to fields the can_create option is true by default. Let's say we want the default to be false

Possible approach:

  1. Define a default hash for each field and assign values like @can_create = args[:can_create] || DEFAULTS[:can_create]
  2. Make possible to merge custom options on boot that changes the default hash to the desired defaults

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions