Method: ActiveImport.import_file_with_path

Defined in:
lib/active_import/utility.rb

.import_file_with_path(file) ⇒ Object



2
3
4
5
6
7
8
# File 'lib/active_import/utility.rb', line 2

def self.import_file_with_path file
  f = file.strip
  unless /^\//.match(f)
    f = File.join(Rails.root, "db", "active_import", f)
  end
  f
end