Sha256: 2b1e2e98b1be049520dac4bea0f76937eacaa0de627323115ec150384e2fedb9

Contents?: true

Size: 701 Bytes

Versions: 4

Compression:

Stored size: 701 Bytes

Contents

# frozen_string_literal: true

module Torque
  module PostgreSQL
    module BoundSchemaReflection
      def add_model_name(table_name, model)
        @schema_reflection.add_model_name(@connection, table_name, model)
      end

      def dependencies(table_name)
        @schema_reflection.dependencies(@connection, table_name)
      end

      def associations(table_name)
        @schema_reflection.associations(@connection, table_name)
      end

      def lookup_model(table_name, scoped_class = '')
        @schema_reflection.lookup_model(@connection, table_name, scoped_class)
      end
    end

    ActiveRecord::ConnectionAdapters::BoundSchemaReflection.prepend BoundSchemaReflection
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

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