Class: PermissionPolicy::Strategies::UnknownStrategy

Inherits:
BaseStrategy
  • Object
show all
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

#action, #options

Instance Method Summary collapse

Methods inherited from BaseStrategy

#initialize

Constructor Details

This class inherits a constructor from PermissionPolicy::Strategies::BaseStrategy

Instance Method Details

#allowed?Boolean

Returns:

  • (Boolean)


10
11
12
# File 'lib/permission_policy/strategies/unknown_strategy.rb', line 10

def allowed?
  false
end

#match?Boolean

Returns:

  • (Boolean)


6
7
8
# File 'lib/permission_policy/strategies/unknown_strategy.rb', line 6

def match?
  true
end