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: users_helpers.rb
    path of file: ./repos/gitlabhq/lib/api/helpers
    
    the code of the file until where you have to start completion: # frozen_string_literal: true

module API
  module Helpers
    module UsersHelpers
      extend ActiveSupport::Concern
      extend Grape::API::Helpers

      params :option
    
      def model_errors(model)
        super.tap do |errors|
          # Remapping errors from nested associations.
          next unless errors.has_key?(:"user_detail.bio")

          errors.delete(:"user_detail.bio").each do |message|
            errors.add(:bio, message)
          end
        end
      end