Module: ActionPolicy::Testing::AuthorizerExt
- Included in:
- ActionPolicy::Testing
- Defined in:
- lib/action_policy/testing.rb
Overview
Extend authorizer to add tracking functionality
Instance Method Summary collapse
Instance Method Details
#call(*args) ⇒ Object
121 122 123 124 |
# File 'lib/action_policy/testing.rb', line 121 def call(*args) AuthorizeTracker.track(*args) super end |
#scopify(*args, **kwargs) ⇒ Object
126 127 128 129 |
# File 'lib/action_policy/testing.rb', line 126 def scopify(*args, **kwargs) AuthorizeTracker.track_scope(*args, **kwargs) super end |