lib/chrono_model/adapter.rb in chrono_model-0.5.0 vs lib/chrono_model/adapter.rb in chrono_model-0.5.1

- old
+ new

@@ -430,13 +430,13 @@ end @_on_schema_nesting -= 1 end TableCache = (Class.new(HashWithIndifferentAccess) do - def all ; keys; ; end - def add! table ; self[table] = true ; end - def del! table ; self[table] = nil ; end - def fetch table ; self[table] ||= yield ; end + def all ; keys; ; end + def add! table ; self[table.to_s] = true ; end + def del! table ; self[table.to_s] = nil ; end + def fetch table ; self[table.to_s] ||= yield ; end end).new # Returns true if the given name references a temporal table. # def is_chrono?(table)