Skip to content

Add policy_class parameter to permitted_attributes function #742

@evgenyneu

Description

@evgenyneu

Is it possible to add policy_class parameter to permitted_attributes function (similar to authorise)?

So I can call:

permitted_attributes(@post, :update, policy_class: MyPolicy)

This is necessary for my code where the name of the policy and record class are different.

Metadata

Metadata

Assignees

No one assigned

    Labels

    simmeringundecided but generally optimistic

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions