From f2e1f8e23d1573bab6aa3c83e81cc91255db2211 Mon Sep 17 00:00:00 2001 From: Milos Mosic Date: Wed, 25 Jun 2014 09:48:51 +0100 Subject: [PATCH] Moved data import to a background task --- lib/rails_admin_import_data.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/rails_admin_import_data.rb b/lib/rails_admin_import_data.rb index e714a0d..e2c8f8a 100644 --- a/lib/rails_admin_import_data.rb +++ b/lib/rails_admin_import_data.rb @@ -21,7 +21,7 @@ class ImportCSV < RailsAdmin::Config::Actions::Base Proc.new do download_csv_from_google_drive - import_csv_from_google_drive + call_rake('import_csv_from_google_drive') redirect_to back_or_index end