Class: Admin::ImportController
- Inherits:
-
BaseController
- Object
- BaseController
- Admin::ImportController
show all
- Includes:
- MapFields
- Defined in:
- app/controllers/admin/import_controller.rb
Constant Summary
collapse
- UPLOAD_PROGRESS_FILE =
File.join(Rails.root,'tmp','import_progress.txt')
Constants included
from MapFields
MapFields::CsvParser, MapFields::VERSION
Instance Method Summary
collapse
Methods included from MapFields
included
Instance Method Details
#create_user ⇒ Object
10
11
12
|
# File 'app/controllers/admin/import_controller.rb', line 10
def create_user
create_model(User,'email')
end
|
#index ⇒ Object
8
|
# File 'app/controllers/admin/import_controller.rb', line 8
def index; end
|
#progress ⇒ Object
14
15
16
17
18
19
20
|
# File 'app/controllers/admin/import_controller.rb', line 14
def progress
if File.exist?(UPLOAD_PROGRESS_FILE)
render :text => File.open(UPLOAD_PROGRESS_FILE,'r').read
else
render :nothing => true
end
end
|