Skip to content

Use Uber::Options for definition options? #4

@aldesantis

Description

@aldesantis

Is there a reason it is not possible to use Uber::Options for definition options? If I'm not mistaken, this would allow, for instance, to do the following in Reform:

property :title, writeable: -> { model.my_condition? }

I achieved this in my app by overriding sync_options in my form and calling Uber::Option manually, but it would be cool to just have it embedded in the gem (and any other gems using Declarative).

If there's interest, I can try to submit a PR.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions