Method: Mongoid::Collections::Master#initialize
- Defined in:
- lib/mongoid/collections/master.rb
#initialize(master, name, options = {}) ⇒ Master
Create the new database writer. Will create a collection from the master database.
40 41 42 |
# File 'lib/mongoid/collections/master.rb', line 40 def initialize(master, name, = {}) @collection = master.create_collection(name, ) end |