Employer table broken up and new idcard module setup
This commit is contained in:
@@ -1,4 +1,6 @@
|
||||
class EmployersController < ApplicationController
|
||||
|
||||
# View Methods
|
||||
def index
|
||||
@employers = Employer.all
|
||||
end
|
||||
@@ -12,16 +14,6 @@ class EmployersController < ApplicationController
|
||||
render :new
|
||||
end
|
||||
|
||||
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
|
||||
else
|
||||
@employer = Employer.new
|
||||
end
|
||||
render :new
|
||||
end
|
||||
|
||||
# def import_old
|
||||
# word_doc = params[:employer][:import_from_word]
|
||||
# @plan_templates = IdCardBenefitsTemplate.where.not(title: "BLANK")
|
||||
@@ -74,6 +66,18 @@ class EmployersController < ApplicationController
|
||||
# redirect_to resources_url, notice: 'Resource was successfully destroyed.'
|
||||
end
|
||||
|
||||
# API Methods
|
||||
|
||||
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
|
||||
else
|
||||
@employer = Employer.new
|
||||
end
|
||||
render :new
|
||||
end
|
||||
|
||||
private
|
||||
|
||||
# def process_logos(employer_setup_process_params)
|
||||
|
||||
Reference in New Issue
Block a user