Class: Lcms::Engine::Admin::BatchReimportsController
- Inherits:
-
AdminController
- Object
- ActionController::Base
- Lcms::Engine::ApplicationController
- AdminController
- Lcms::Engine::Admin::BatchReimportsController
- Defined in:
- app/controllers/lcms/engine/admin/batch_reimports_controller.rb
Constant Summary
Constants inherited from AdminController
AdminController::RE_GOOGLE_FOLDER
Instance Method Summary collapse
Methods inherited from AdminController
Methods included from PathHelper
#dynamic_document_path, #dynamic_material_path, #dynamic_path
Instance Method Details
#create ⇒ Object
11 12 13 14 15 16 17 18 19 20 |
# File 'app/controllers/lcms/engine/admin/batch_reimports_controller.rb', line 11 def create @query = OpenStruct.new params[:query].except(:type) # rubocop:disable Style/OpenStructUse entries = if materials? DocTemplate.config['queries']['material'].constantize.call(@query) else DocTemplate.config['queries']['document'].constantize.call(@query) end bulk_import entries render :import end |
#new ⇒ Object
7 8 9 |
# File 'app/controllers/lcms/engine/admin/batch_reimports_controller.rb', line 7 def new @query = OpenStruct.new(params[:query]) # rubocop:disable Style/OpenStructUse end |