class ActiveRecord::ConnectionAdapters::Mysql2Adapter

def each_hash(result, &block) # :nodoc:

:nodoc:
def each_hash(result, &block) # :nodoc:
  if block_given?
    result.each(as: :hash, symbolize_keys: true, &block)
  else
    to_enum(:each_hash, result)
  end
end