Business intelligence made simple
Do not require environment variable in development
Andrew Kane397411916c24
diff --git a/README.md b/README.mdindex 28bc1260..52cdb2d4 100644--- a/README.md+++ b/README.md@@ -17,8 +17,6 @@ Works with PostgreSQL and MySQL- **Smart Variables** - no need to remember IDs- **Charts & Maps** - a picture is worth a thousand words-Documentation coming soon.-## InstallationAdd this line to your application’s Gemfile:@@ -40,7 +38,7 @@ And mount the dashboard in your `config/routes.rb`:mount Blazer::Engine, at: "blazer"```-Then, specify your database:+For production, specify your database:```rubyENV["BLAZER_DATABASE_URL"]@@ -62,7 +60,7 @@ GRANT USAGE ON SCHEMA public TO blazer;COMMIT;```-It’s highly recommended to protect sensitive information with views. Documentation coming soon.+It is **highly, highly recommended** to protect sensitive information with views. Documentation coming soon.### MySQL@@ -73,7 +71,7 @@ GRANT SELECT, SHOW VIEW ON database_name.* TO blazer@’127.0.0.1′ IDENTIFIEDFLUSH PRIVILEGES;```-It’s highly recommended to protect sensitive information with views. Documentation coming soon.+It is **highly, highly recommended** to protect sensitive information with views. Documentation coming soon.## Authenticationdiff --git a/app/controllers/blazer/queries_controller.rb b/app/controllers/blazer/queries_controller.rbindex 63f504b3..cc0ac7cd 100644--- a/app/controllers/blazer/queries_controller.rb+++ b/app/controllers/blazer/queries_controller.rb@@ -125,7 +125,7 @@ module Blazerprivatedef ensure_database_url- render text: "BLAZER_DATABASE_URL required" if !ENV["BLAZER_DATABASE_URL"]+ render text: "BLAZER_DATABASE_URL required" if !ENV["BLAZER_DATABASE_URL"] && !Rails.env.development?enddef set_query