Sha256: 427326b591918060163fca4c21f64d54015749e5742dec199a70d2ad189f484e

Contents?: true

Size: 495 Bytes

Versions: 5

Compression:

Stored size: 495 Bytes

Contents

# frozen_string_literal: true

# :nodoc:
#
module ActiveRecord
  # :nodoc:
  #
  module ConnectionAdapters
    # :nodoc:
    #
    module PostgreSQL
      # :nodoc:
      #
      module OID
        # :nodoc:
        #
        class TypeMapInitializer
          # :nodoc:
          #
          def register_enum_type(row)
            register row['oid'], ActiveRecord::ConnectionAdapters::PostgreSQL::OID::Enum.new(enum_type: row['typname'])
          end
        end
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
enum_kit-0.3.1 lib/enum_kit/active_record_patches/connection_adapters/postgresql/oid/type_map_initializer.rb
enum_kit-0.3.0 lib/enum_kit/active_record_patches/connection_adapters/postgresql/oid/type_map_initializer.rb
enum_kit-0.2.3 lib/enum_kit/active_record_patches/connection_adapters/postgresql/oid/type_map_initializer.rb
enum_kit-0.2.2 lib/enum_kit/active_record_patches/connection_adapters/postgresql/oid/type_map_initializer.rb
enum_kit-0.2.1 lib/enum_kit/active_record_patches/connection_adapters/postgresql/oid/type_map_initializer.rb