Method: Mongoid::Clients::StorageOptions::ClassMethods#storage_options_defaults

Defined in:
lib/mongoid/clients/storage_options.rb

#storage_options_defaultsHash

Get the default storage options.

Examples:

Get the default storage options.

Model.storage_options_defaults

Returns:

  • (Hash)

    Default storage options.

Since:

  • 4.0.0



74
75
76
77
78
79
# File 'lib/mongoid/clients/storage_options.rb', line 74

def storage_options_defaults
  {
    collection: name.collectionize.to_sym,
    client: :default
  }
end