Ver código fonte

Updated readme

Andrew Kane 8 anos atrás
pai
commit
16504c22b4
1 arquivos alterados com 7 adições e 0 exclusões
  1. 7 0
      README.md

+ 7 - 0
README.md

@@ -228,6 +228,13 @@ smart_columns:
   city_id: "SELECT id, name FROM cities WHERE id IN {value}"
 ```
 
+You can also use a hash for static data and enums. [master]
+
+```yml
+smart_columns:
+  status: {0: "Active", 1: "Archived"}
+```
+
 ### Caching
 
 Blazer can automatically cache results to improve speed. It can cache slow queries: