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: user.rb
    path of file: ./repos/workarea/testing/lib/workarea/testing/factories
    
    the code of the file until where you have to start completion: module Workarea
  module Factories
    module User
      Factories.add(self)

      def create_user(
    
      def create_user(overrides = {})
        attributes = factory_defaults(:user).merge(overrides)

        Workarea::User.new(attributes).tap do |user|
          user.save!
          Factories.user_count += 1
        end
      end