class AlphaApi::ResourceCollection::ConfigMismatch

Public Class Methods

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