lib/knj/knjdb/revision.rb in knjrbfw-0.0.53 vs lib/knj/knjdb/revision.rb in knjrbfw-0.0.54
- old
+ new
@@ -40,10 +40,10 @@
raise "'schema' argument was not a Hash: '#{schema.class.name}'." if !schema.is_a?(Hash)
raise "':return_keys' is not 'symbols' - Knjdbrevision will not work without it." if db.opts[:return_keys] != "symbols"
raise "No tables given." if !schema.has_key?("tables")
#Cache tables to avoid constant reloading.
- if !args["tables_cache"] or args["tables_cache"]
+ if !args.key?("tables_cache") or args["tables_cache"]
print "Caching tables-list.\n" if args["debug"]
tables = db.tables.list
else
print "Skipping tables-cache.\n" if args["debug"]
end
\ No newline at end of file