Sha256: bbb43265f5ff96a2f9a8d5df486351ccfce4e7bdaa403adca7ac1215b5005480

Contents?: true

Size: 552 Bytes

Versions: 12

Compression:

Stored size: 552 Bytes

Contents

# lib/postgresql_cursor/active_record/connection_adapters/postgresql_type_map
module PostgreSQLCursor
  module ActiveRecord
    module ConnectionAdapters
      module PostgreSQLTypeMap
        # Returns the private "type_map" needed for the cursor operation
        def get_type_map # :nodoc:
          if ::ActiveRecord::VERSION::MAJOR == 4 && ::ActiveRecord::VERSION::MINOR == 0
            ::ActiveRecord::ConnectionAdapters::PostgreSQLAdapter::OID::TYPE_MAP
          else
            type_map
          end
        end
      end
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
postgresql_cursor-0.6.9 lib/postgresql_cursor/active_record/connection_adapters/postgresql_type_map.rb
postgresql_cursor-0.6.8 lib/postgresql_cursor/active_record/connection_adapters/postgresql_type_map.rb
postgresql_cursor-0.6.7 lib/postgresql_cursor/active_record/connection_adapters/postgresql_type_map.rb
postgresql_cursor-0.6.6 lib/postgresql_cursor/active_record/connection_adapters/postgresql_type_map.rb
postgresql_cursor-0.6.5 lib/postgresql_cursor/active_record/connection_adapters/postgresql_type_map.rb
postgresql_cursor-0.6.4 lib/postgresql_cursor/active_record/connection_adapters/postgresql_type_map.rb
postgresql_cursor-0.6.3 lib/postgresql_cursor/active_record/connection_adapters/postgresql_type_map.rb
postgresql_cursor-0.6.2 lib/postgresql_cursor/active_record/connection_adapters/postgresql_type_map.rb
postgresql_cursor-0.6.1 lib/postgresql_cursor/active_record/connection_adapters/postgresql_type_map.rb
postgresql_cursor-0.6.0 lib/postgresql_cursor/active_record/connection_adapters/postgresql_type_map.rb
postgresql_cursor-0.5.1 lib/postgresql_cursor/active_record/connection_adapters/postgresql_type_map.rb
postgresql_cursor-0.5.0 lib/postgresql_cursor/active_record/connection_adapters/postgresql_type_map.rb