Class: FileDb

Inherits:
Object
  • Object
show all
Defined in:
app/models/file_db.rb

Class Method Summary collapse

Class Method Details

.do_import(target_model, file, &block) ⇒ Object



3
4
5
6
7
# File 'app/models/file_db.rb', line 3

def do_import(target_model, file, &block)
  if (block_given?)
    block.call(target_model, file)
  end
end