Before adding workers
This commit is contained in:
@@ -18,7 +18,7 @@ class EmployersController < ApplicationController
|
||||
# word_doc = params[:employer][:import_from_word]
|
||||
# @plan_templates = IdCardBenefitsTemplate.where.not(title: "BLANK")
|
||||
# if word_doc.present? && word_doc.is_a?(ActionDispatch::Http::UploadedFile)
|
||||
# @employer = BenefitsWordDocProcessor.new(word_doc.tempfile).call
|
||||
# @employer = WordDocProcessor.new(word_doc.tempfile).call
|
||||
# else
|
||||
# @employer = Employer.new
|
||||
# @employer.build_plan_with_default_benefits
|
||||
@@ -72,7 +72,7 @@ class EmployersController < ApplicationController
|
||||
def import
|
||||
word_doc = params[:employer][:import_from_word]
|
||||
if word_doc.present? && word_doc.is_a?(ActionDispatch::Http::UploadedFile)
|
||||
@employer = BenefitsWordDocProcessor.new(word_doc.tempfile).call
|
||||
@employer = WordDocProcessor.new(word_doc.tempfile).call
|
||||
@employer.save
|
||||
redirect_to employer_path(@employer.slug), notice: 'Employer Imported'
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user