Sha256: 4b629ca2277e03cf6d7ef74bcf48169eb6785cb7f792b4b645ed530947f2e155

Contents?: true

Size: 357 Bytes

Versions: 51

Compression:

Stored size: 357 Bytes

Contents

# frozen_string_literal: true

module ActiveRecord
  module ConnectionAdapters
    module PostgreSQL
      module OID # :nodoc:
        class Enum < Type::Value # :nodoc:
          def type
            :enum
          end

          private

            def cast_value(value)
              value.to_s
            end
        end
      end
    end
  end
end

Version data entries

51 entries across 51 versions & 7 rubygems

Version Path
activerecord-5.2.8.1 lib/active_record/connection_adapters/postgresql/oid/enum.rb
activerecord-5.2.8 lib/active_record/connection_adapters/postgresql/oid/enum.rb
activerecord-5.2.7.1 lib/active_record/connection_adapters/postgresql/oid/enum.rb
activerecord-5.2.7 lib/active_record/connection_adapters/postgresql/oid/enum.rb
activerecord-5.2.6.3 lib/active_record/connection_adapters/postgresql/oid/enum.rb
activerecord-5.2.6.2 lib/active_record/connection_adapters/postgresql/oid/enum.rb
activerecord-5.2.6.1 lib/active_record/connection_adapters/postgresql/oid/enum.rb
activerecord-5.2.6 lib/active_record/connection_adapters/postgresql/oid/enum.rb
activerecord-5.2.4.6 lib/active_record/connection_adapters/postgresql/oid/enum.rb
activerecord-5.2.5 lib/active_record/connection_adapters/postgresql/oid/enum.rb
activerecord-5.2.4.5 lib/active_record/connection_adapters/postgresql/oid/enum.rb
activerecord-5.2.4.4 lib/active_record/connection_adapters/postgresql/oid/enum.rb
activerecord-5.2.4.3 lib/active_record/connection_adapters/postgresql/oid/enum.rb
activerecord-6.0.2.2 lib/active_record/connection_adapters/postgresql/oid/enum.rb
activerecord-5.2.4.2 lib/active_record/connection_adapters/postgresql/oid/enum.rb
argon-1.3.1 vendor/bundle/ruby/2.7.0/gems/activerecord-6.0.2.1/lib/active_record/connection_adapters/postgresql/oid/enum.rb
symbolic_enum-1.1.5 vendor/bundle/ruby/2.7.0/gems/activerecord-6.0.2.1/lib/active_record/connection_adapters/postgresql/oid/enum.rb
activerecord-6.0.2.1 lib/active_record/connection_adapters/postgresql/oid/enum.rb
activerecord-5.2.4.1 lib/active_record/connection_adapters/postgresql/oid/enum.rb
activerecord-6.0.2 lib/active_record/connection_adapters/postgresql/oid/enum.rb