Class: ActiveAdmin::AuthorizationAdapter::NormalizedMatcher
- Inherits:
-
Object
- Object
- ActiveAdmin::AuthorizationAdapter::NormalizedMatcher
- Defined in:
- lib/active_admin/authorization_adapter.rb
Instance Method Summary collapse
- #===(other) ⇒ Object
-
#initialize(klass) ⇒ NormalizedMatcher
constructor
A new instance of NormalizedMatcher.
Constructor Details
#initialize(klass) ⇒ NormalizedMatcher
Returns a new instance of NormalizedMatcher.
120 121 122 |
# File 'lib/active_admin/authorization_adapter.rb', line 120 def initialize(klass) @klass = klass end |
Instance Method Details
#===(other) ⇒ Object
124 125 126 |
# File 'lib/active_admin/authorization_adapter.rb', line 124 def ===(other) @klass == other || other.is_a?(@klass) end |