Sha256: fb0760df26105723d30d6923d0ca33ed50a5f0325786e52d14ba74f0dadb1e26

Contents?: true

Size: 709 Bytes

Versions: 3

Compression:

Stored size: 709 Bytes

Contents

# frozen_string_literal: true

module Torque
  module PostgreSQL
    module SchemaReflection
      def add_model_name(connection, table_name, model)
        cache(connection).add_model_name(connection, table_name, model)
      end

      def dependencies(connection, table_name)
        cache(connection).dependencies(connection, table_name)
      end

      def associations(connection, table_name)
        cache(connection).associations(connection, table_name)
      end

      def lookup_model(connection, table_name, scoped_class)
        cache(connection).lookup_model(table_name, scoped_class)
      end
    end

    ActiveRecord::ConnectionAdapters::SchemaReflection.prepend SchemaReflection
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
torque-postgresql-3.3.3 lib/torque/postgresql/schema_cache/schema_reflection.rb
torque-postgresql-3.3.2 lib/torque/postgresql/schema_cache/schema_reflection.rb
torque-postgresql-3.3.1 lib/torque/postgresql/schema_cache/schema_reflection.rb