Sha256: ba6167d55f809c1036d4a560b1097875edef6ca69404c5f5bd1f91e11d1f54e8

Contents?: true

Size: 483 Bytes

Versions: 7

Compression:

Stored size: 483 Bytes

Contents

# frozen_string_literal: true

module ActiveRecord
  module ConnectionAdapters
    module PostGIS
      module OID
        module DateTime
          protected

          # Uses PostGIS instead of PostgreSQLAdapter
          def real_type_unless_aliased(real_type)
            ActiveRecord::ConnectionAdapters::PostGISAdapter.datetime_type == real_type ? :datetime : real_type
          end
        end

        PostgreSQL::OID::DateTime.prepend(DateTime)
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
activerecord-postgis-adapter-10.0.1 lib/active_record/connection_adapters/postgis/oid/date_time.rb
activerecord-postgis-adapter-10.0.0 lib/active_record/connection_adapters/postgis/oid/date_time.rb
activerecord-postgis-adapter-9.0.2 lib/active_record/connection_adapters/postgis/oid/date_time.rb
activerecord-postgis-adapter-9.0.1 lib/active_record/connection_adapters/postgis/oid/date_time.rb
activerecord-postgis-adapter-9.0.0 lib/active_record/connection_adapters/postgis/oid/date_time.rb
activerecord-postgis-adapter-8.0.3 lib/active_record/connection_adapters/postgis/oid/date_time.rb
activerecord-postgis-adapter-8.0.2 lib/active_record/connection_adapters/postgis/oid/date_time.rb