Module: Torque::PostgreSQL::SchemaReflection

Defined in:
lib/torque/postgresql/schema_cache/schema_reflection.rb

Instance Method Summary collapse

Instance Method Details

#add_model_name(source, table_name, model) ⇒ Object



6
7
8
# File 'lib/torque/postgresql/schema_cache/schema_reflection.rb', line 6

def add_model_name(source, table_name, model)
  cache(source).add_model_name(source, table_name, model)
end

#associations(source, table_name) ⇒ Object



14
15
16
# File 'lib/torque/postgresql/schema_cache/schema_reflection.rb', line 14

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

#dependencies(source, table_name) ⇒ Object



10
11
12
# File 'lib/torque/postgresql/schema_cache/schema_reflection.rb', line 10

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

#lookup_model(source, table_name, scoped_class) ⇒ Object



18
19
20
# File 'lib/torque/postgresql/schema_cache/schema_reflection.rb', line 18

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