Exception: AlphaApi::ResourceCollection::ConfigMismatch
- Inherits:
-
StandardError
- Object
- StandardError
- AlphaApi::ResourceCollection::ConfigMismatch
- Defined in:
- lib/alpha_api/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/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 |