Module: Mongoid::Clients::Options::ClassMethods
Instance Method Summary collapse
- #client_name ⇒ Object (also: #session_name)
- #collection_name ⇒ Object
- #database_name ⇒ Object
-
#with(options) ⇒ Class
Tell the next persistance operation to store in a specific collection, database or client.
Methods included from Threaded
Instance Method Details
#client_name ⇒ Object Also known as: session_name
105 106 107 108 109 110 |
# File 'lib/mongoid/clients/options.rb', line 105 def client_name if && v = [:client] return v.to_sym end super end |
#collection_name ⇒ Object
114 115 116 117 118 119 |
# File 'lib/mongoid/clients/options.rb', line 114 def collection_name if && v = [:collection] return v.to_sym end super end |
#database_name ⇒ Object
121 122 123 124 125 126 |
# File 'lib/mongoid/clients/options.rb', line 121 def database_name if && v = [:database] return v.to_sym end super end |