Class: ActiveAdmin::AuthorizationAdapter::NormalizedMatcher

Inherits:
Object
  • Object
show all
Defined in:
lib/active_admin/authorization_adapter.rb

Instance Method Summary collapse

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