Business intelligence made simple
Updated template and readme
Andrew Kane1cd816ecf52a
diff --git a/README.md b/README.mdindex 122210f1..d807c1b4 100644--- a/README.md+++ b/README.md@@ -191,6 +191,14 @@ smart_variables:The first column is the value of the variable, and the second column is the label.+You can also use an array or hash for static data and enums.++```yml+smart_variables:+ period: ["day", "week", "month"]+ status: {0: "Active", 1: "Archived"}+```+### Linked Columns[Example](https://blazerme.herokuapp.com/queries/3-linked-column) - title columndiff --git a/lib/generators/blazer/templates/config.yml b/lib/generators/blazer/templates/config.ymlindex 970ec30e..623394a0 100644--- a/lib/generators/blazer/templates/config.yml+++ b/lib/generators/blazer/templates/config.yml@@ -23,10 +23,8 @@ data_sources:smart_variables:# zone_id: "SELECT id, name FROM zones ORDER BY name ASC"- #=== You can use it as Array- # zone_name: ['Zone 1', 'Zone 2']- #=== or as Hash- # zone_type: {type_1: 'Type 1', type_2: 'Type 2'}+ # period: ["day", "week", "month"]+ # status: {0: "Active", 1: "Archived"}linked_columns:# user_id: "/admin/users/{value}"