Method: Mongoid::Errors::CreateCollectionFailure#initialize
- Defined in:
- lib/mongoid/errors/create_collection_failure.rb
#initialize(collection_name, collection_options, error) ⇒ CreateCollectionFailure
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Instantiate the create collection error.
20 21 22 23 24 25 26 27 28 29 30 31 |
# File 'lib/mongoid/errors/create_collection_failure.rb', line 20 def initialize(collection_name, , error) super( ( "create_collection_failure", { collection_name: collection_name, collection_options: , error: "#{error.class}: #{error.}" } ) ) end |