Module: BridgeCache::Data::BridgeModel

Instance Method Summary collapse

Instance Method Details

#cleanup(row_ids) ⇒ Object



11
12
13
14
# File 'app/lib/bridge_cache/data/bridge_model.rb', line 11

def cleanup(row_ids)
  # Implement this method in your model if you want to do any sort of post creation cleanup.
  # See tagging.rb for an example.
end

#create_from_csv_row(row) ⇒ Object



7
8
9
# File 'app/lib/bridge_cache/data/bridge_model.rb', line 7

def create_from_csv_row(row)
  BridgeCache::Plugins::CSVDump::dump_row(self, row)
end

#import_from_csv(file_path) ⇒ Object



3
4
5
# File 'app/lib/bridge_cache/data/bridge_model.rb', line 3

def import_from_csv(file_path)
  BridgeCache::Plugins::CSVDump::dump_to_table(self, file_path)
end