Module: Noodall::Indexer::ClassMethods
- Defined in:
- lib/noodall/indexer.rb
Instance Method Summary collapse
Instance Method Details
#create_indexes! ⇒ Object
15 16 17 18 19 20 |
# File 'lib/noodall/indexer.rb', line 15 def create_indexes! self.indexes.each do |args| puts "Creating index #{args.inspect}" collection.create_index(*args) end end |
#ensure_index(*args) ⇒ Object
11 12 13 |
# File 'lib/noodall/indexer.rb', line 11 def ensure_index(*args) self.indexes << args end |