Skip to content
This repository was archived by the owner on May 18, 2024. It is now read-only.

Allow to ignore arguments #2

@dnagir

Description

@dnagir

I often write permission checks that do not need to accept any arguments:

class UserAccess < DefaultAccess

  def sign_in?(user_klass)
    current_user.present?
  end

end

which is executed from controller as:

authorize! :sign_in, User

It would be good if we could rewrite the sign_in? signature without user_klass argument that is not used.

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