Method: Pundit.policy!

Defined in:
lib/pundit.rb

.policy!(user, *args, **kwargs, &block) ⇒ Object

See Also:

  • [Pundit[Pundit::Context[Pundit::Context#policy!]


100
101
102
# File 'lib/pundit.rb', line 100

def policy!(user, *args, **kwargs, &block)
  Context.new(user: user).policy!(*args, **kwargs, &block)
end