lib/updateable_views_inheritance/postgresql_adapter.rb
# Returns hash with tables and thier corresponding class.
# {table_name1 => ClassName1, ...}
Returns hash with tables and thier corresponding class.
Returns hash with tables and thier corresponding class .
def klass_for_tables
                  return @@tables_klasses if defined?(@@tables_klasses)
                  @@tables_klasses = {}
                  all_db_klasses.each do |klass|
                    @@tables_klasses[klass.table_name] = klass if klass.respond_to?(:table_name)
                  end
                  @@tables_klasses
                end
def klass_for_tables return @@tables_klasses if defined? ( @@tables_klasses ) @@tables_klasses = { } all_db_klasses . each do | klass | @@tables_klasses [ klass . table_name ] = klass if klass . respond_to? ( :table_name ) end @@tables_klasses end
Returns hash with tables and thier corresponding class.
Returns hash with tables and thier corresponding class .