Module: Wherever::Mark

Included in:
Wherever
Defined in:
lib/wherever/wherever/mark.rb

Instance Method Summary collapse

Instance Method Details

#mark(name) ⇒ Object



3
4
5
6
7
8
9
10
11
12
# File 'lib/wherever/wherever/mark.rb', line 3

def mark(name)
  copy_collections("current_identifier_dataset", "#{name}_identifier_dataset")
  config.key_groups.each do |keys|
    [:identifier, :dataset].each do |db_type|
      db_id = "#{keys.join('_')}_#{db_type}"
      copy_collections("current_#{db_id}", "#{name}_#{db_id}")
    end
  end
  set_price_lookup('price', nil, [{'marker' => name}])
end