Module: Pundit::Helper Private

Defined in:
lib/pundit/helper.rb

Overview

This module is part of a private API. You should avoid using this module if possible, as it may be removed or be changed in the future.

Rails view helpers, to allow a slightly different view-specific implementation of the methods in Authorization.

Since:

  • v1.0.0

Instance Method Summary collapse

Instance Method Details

#policy_scope(scope) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

See Also:

  • Authorization#pundit_policy_scope

Since:

  • v1.0.0



12
13
14
# File 'lib/pundit/helper.rb', line 12

def policy_scope(scope)
  pundit_policy_scope(scope)
end