Exception: ActiveAdmin::ResourceCollection::ConfigMismatch

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

Instance Method Summary collapse

Constructor Details

#initialize(existing, given) ⇒ ConfigMismatch

Returns a new instance of ConfigMismatch.



66
67
68
69
# File 'lib/active_admin/resource_collection.rb', line 66

def initialize(existing, given)
  super "You're trying to register #{given.resource_class} as #{given.resource_name}, " +
        "but the existing #{existing.class} config was built for #{existing.resource_class}!"
end