Method: Pundit.policy!

Defined in:
lib/pundit.rb

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

See Also:

Since:

  • v0.1.0



73
74
75
# File 'lib/pundit.rb', line 73

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