Exception: ActiveAdmin::ResourceCollection::IncorrectClass

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

Instance Method Summary collapse

Constructor Details

#initialize(existing, given) ⇒ IncorrectClass

Returns a new instance of IncorrectClass.


58
59
60
61
# File 'lib/active_admin/resource_collection.rb', line 58

def initialize(existing, given)
  super "You're trying to register #{given.resource_name} which is a #{given.class}, " +
        "but #{existing.resource_name}, a #{existing.class} has already claimed that name."
end