automate employer setup import from word and manual entry working

This commit is contained in:
Jason Jordan
2025-12-03 11:42:15 -05:00
parent 3fbece7da6
commit 78ce415b94
44 changed files with 1012 additions and 339 deletions
+2 -6
View File
@@ -6,11 +6,7 @@ class ArrayOfItemsType < ActiveModel::Type::Value
Array.wrap(value).map do |item_data|
# Assuming item_data is a hash, this creates an instance of the Item class.
# You can modify this part to match your object's initializer.
if item_data.is_a?(Hash)
Item.new(item_data)
else
item_data # Return the item as-is if it's already an object
end
item_data # Return the item as-is if it's already an object
end
end
@@ -20,4 +16,4 @@ class ArrayOfItemsType < ActiveModel::Type::Value
end
end
ActiveModel::Type.register(:array_of_items, ArrayOfItemsType)
# ActiveModel::Type.register(:array_of_items, ArrayOfItemsType)