Skip to content

Clarification in documentation #16

@Mirv

Description

@Mirv

I'm just reading to make sure I'm using the gem right - you have a statement I need some clarity on ...

Arpa will create some helpers to use inside your controllers and views.

To verify if a user has access to some :controler and :action, use the following helper:

has_access?('users', 'index')

Obs.: To that helper method works. You must have :current_user attribute or method.


From what I can tell you are stating that "Observation: `has_access?` helper method requires to :current_user attribute or method to work.

From ... [Link](https://github.com/stantmob/arpa#association-between-arpaprofile-and-somemodel)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions