lib/simple/sql/reflection.rb in simple-sql-0.4.30 vs lib/simple/sql/reflection.rb in simple-sql-0.4.31

- old
+ new

@@ -81,11 +81,15 @@ end end public + def looked_up_pg_classes + @looked_up_pg_classes ||= Hash.new { |hsh, key| hsh[key] = _lookup_pg_class(key) } + end + def lookup_pg_class(oid) - @pg_classes ||= Hash.new { |hsh, key| hsh[key] = _lookup_pg_class(oid) } + looked_up_pg_classes[oid] end private def _lookup_pg_class(oid)