Class: PunditNamespaces::NamespacedPolicyFinder
- Inherits:
-
Pundit::PolicyFinder
- Object
- Pundit::PolicyFinder
- PunditNamespaces::NamespacedPolicyFinder
- Defined in:
- lib/pundit_namespaces/namespaced_policy_finder.rb
Instance Attribute Summary collapse
-
#namespace ⇒ Object
readonly
Returns the value of attribute namespace.
Instance Method Summary collapse
-
#initialize(object, namespace = nil) ⇒ NamespacedPolicyFinder
constructor
A new instance of NamespacedPolicyFinder.
Constructor Details
#initialize(object, namespace = nil) ⇒ NamespacedPolicyFinder
7 8 9 10 |
# File 'lib/pundit_namespaces/namespaced_policy_finder.rb', line 7 def initialize(object, namespace = nil) super(object) @namespace = namespace end |
Instance Attribute Details
#namespace ⇒ Object (readonly)
Returns the value of attribute namespace.
5 6 7 |
# File 'lib/pundit_namespaces/namespaced_policy_finder.rb', line 5 def namespace @namespace end |