active_admin_import_anything 0.0.2 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
data/app/models/file_db.rb
CHANGED
@@ -9,8 +9,8 @@ module ActiveAdminImportAnything
|
|
9
9
|
render "admin/file/upload_file"
|
10
10
|
end
|
11
11
|
|
12
|
-
collection_action :
|
13
|
-
FileDb.do_import(
|
12
|
+
collection_action :import_file, :method => :post do
|
13
|
+
FileDb.do_import(params[:dump][:file], &block)
|
14
14
|
redirect_to :action => :index, :notice => "#{active_admin_config.resource_name.to_s} imported successfully!"
|
15
15
|
end
|
16
16
|
end
|