class ActiveAdmin::ResourceCollection::IncorrectClass

Public Class Methods

new(existing, given) click to toggle source
Calls superclass method
# 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