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: impersonations_controller.rb
    path of file: ./repos/workarea/admin/app/controllers/workarea/admin
    
    the code of the file until where you have to start completion: module Workarea
  module Admin
    class InvalidImpersonation < StandardError; end

    class ImpersonationsController < Admin::ApplicationController
      include Storefront::CurrentCheckout
      required_permissions :people

      def create
        new_user = U
    
      def create
        new_user = User.find(params[:user_id])
        raise InvalidImpersonation if new_user.admin?

        impersonate_user(new_user)
        login = Login.new(new_user, Order.new)
        self.current_order = login.previous_order || Order.new

        flash[:success] = t(
          'workarea.admin.users.flash_messages.started',
          email: new_user.email
        )
        redirect_to storefront.users_account_path
      end