Sha256: 302855b987b1b731db30e718317542a88841a749c9ccc397e25b491819898304

Contents?: true

Size: 665 Bytes

Versions: 2

Compression:

Stored size: 665 Bytes

Contents

# frozen_string_literal: true

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

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

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

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

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

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
torque-postgresql-3.4.1 lib/torque/postgresql/schema_cache/schema_reflection.rb
torque-postgresql-3.4.0 lib/torque/postgresql/schema_cache/schema_reflection.rb