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.


118
119
120
# File 'lib/active_admin/authorization_adapter.rb', line 118

def initialize(klass)
  @klass = klass
end

Instance Method Details

#===(other) ⇒ Object


122
123
124
# File 'lib/active_admin/authorization_adapter.rb', line 122

def ===(other)
  @klass == other || other.is_a?(@klass)
end