Exception: ActiveAdmin::ResourceCollection::ConfigMismatch
- Inherits:
-
StandardError
- Object
- StandardError
- ActiveAdmin::ResourceCollection::ConfigMismatch
- Defined in:
- lib/active_admin/resource_collection.rb
Instance Method Summary collapse
-
#initialize(existing, given) ⇒ ConfigMismatch
constructor
A new instance of ConfigMismatch.
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 |