From 72aa9c8599b3bd6ea45421c2fbe19be4ab288697 Mon Sep 17 00:00:00 2001 From: Denis Knauf Date: Sat, 6 Feb 2010 11:56:09 +0100 Subject: [PATCH] SBDB::Unknown: Blocks are nice --- lib/sbdb/db.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/sbdb/db.rb b/lib/sbdb/db.rb index 0852f1b..ac32b8c 100644 --- a/lib/sbdb/db.rb +++ b/lib/sbdb/db.rb @@ -77,7 +77,7 @@ module SBDB class Unknown < DB def self.new file, name, *p, &e - db = super( file, name, UNKNOWN, *p) { db.bdb_object.get_type } + db = super( file, name, UNKNOWN, *p) {|db| db.bdb_object.get_type } TYPES[dbt] ? TYPES[dbt].new( file, name, *p, &e) : super( file, name, UNKNOWN, *p, &e) end end