Business intelligence made simple
Updated generator
Andrew Kanedcc1b0235b41
diff --git a/lib/blazer/data_source.rb b/lib/blazer/data_source.rbindex d0c0cdaf..5d229144 100644--- a/lib/blazer/data_source.rb+++ b/lib/blazer/data_source.rb@@ -49,7 +49,7 @@ module Blazer@cache ||= beginif settings["cache"].is_a?(Hash)settings["cache"]- else+ elsif settings["cache"]{"mode" => "all","expires_in" => settings["cache"]diff --git a/lib/generators/blazer/templates/config.yml b/lib/generators/blazer/templates/config.ymlindex b45a1904..5c585d7c 100644--- a/lib/generators/blazer/templates/config.yml+++ b/lib/generators/blazer/templates/config.yml@@ -8,10 +8,13 @@ data_sources:# none by default# timeout: 15- # time to cache results, in minutes+ # caching settings# can greatly improve speed- # none by default- # cache: 60+ # off by default+ # cache:+ # mode: slow # or all+ # expires_in: 60 # min+ # slow_threshold: 15 # sec# wrap queries in a transaction for safety# not necessary if you use a read-only user