Class: Para::Admin::ImportsController
- Inherits:
-
JobsController
- Object
- ActionController::Base
- Para::ApplicationController
- BaseController
- ComponentController
- JobsController
- Para::Admin::ImportsController
- Defined in:
- app/controllers/para/admin/imports_controller.rb
Instance Method Summary collapse
Methods inherited from JobsController
Methods inherited from BaseController
#current_ability, #current_admin
Methods included from BaseHelper
#find_partial_for, #find_relation_name_for, #flash_message, #flash_shared_key, #registered_components_options, #resource_title_for, #template_path_lookup
Methods included from Helpers::ResourceName
Methods inherited from Para::ApplicationController
Instance Method Details
#create ⇒ Object
13 14 15 16 17 18 19 20 21 22 23 |
# File 'app/controllers/para/admin/imports_controller.rb', line 13 def create @file = Para::Library::File.new(file_params) if @file.save job = @importer.perform_later(@file) track_job(job) else render 'new' end end |
#new ⇒ Object
8 9 10 11 |
# File 'app/controllers/para/admin/imports_controller.rb', line 8 def new @file = Para::Library::File.new @model = resource_model end |