You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: barcode_items_controller.rb
    path of file: ./repos/human-essentials/app/controllers/admin
    
    the code of the file until where you have to start completion: # [Super Admin] - Manage globally available barcodes. The key difference here is that these barcodes
# will be associated with BaseItems, whereas user-barcodes are associated with regular Items.
class Admin::BarcodeItemsController < AdminController
  before_action :load_base_items, o
    
  def create
    @barcode_item = BarcodeItem.create(barcode_item_params.merge(barcodeable_type: "BaseItem"))
    if @barcode_item.save
      respond_to do |format|
        format.html { redirect_to admin_barcode_items_path, notice: "Barcode Item added!" }
        format.js
      end
    else
      load_base_items
      flash[:error] = "Failed to create Barcode Item."
      render :new
    end