Skip to content

Option to cancel relationship update authorization #87

@mkamensky

Description

@mkamensky

Hi,

In the creation example (for instance), when create_with_author? does not exist, the fallback is to check update? for the user. I find this unreasonable: when creating the article I'm not really updating the author. I know I could change the behaviour by defining a create_with_author? method, but I would need to do it for every association in all my models (and when adding new ones)

My suggestion: allow specifying a fallback or a method name in place of update? (with update? as default), which is independent of the relationship name (e.g., create_with?)

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions