Method: Pundit.policy!

Defined in:
lib/pundit.rb

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

See Also:

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


97
98
99
# File 'lib/pundit.rb', line 97

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