Class: PermissionPolicy::Strategies::UnknownStrategy
- Inherits:
-
BaseStrategy
- Object
- BaseStrategy
- PermissionPolicy::Strategies::UnknownStrategy
- Defined in:
- lib/permission_policy/strategies/unknown_strategy.rb
Overview
Fallback strategy if no other matches. It allways matches and always denies access no matter what.
Instance Attribute Summary
Attributes inherited from BaseStrategy
Instance Method Summary collapse
Methods inherited from BaseStrategy
Constructor Details
This class inherits a constructor from PermissionPolicy::Strategies::BaseStrategy
Instance Method Details
#allowed? ⇒ Boolean
10 11 12 |
# File 'lib/permission_policy/strategies/unknown_strategy.rb', line 10 def allowed? false end |
#match? ⇒ Boolean
6 7 8 |
# File 'lib/permission_policy/strategies/unknown_strategy.rb', line 6 def match? true end |