Explorar o código

Updated readme

Andrew Kane %!s(int64=8) %!d(string=hai) anos
pai
achega
16504c22b4
Modificáronse 1 ficheiros con 7 adicións e 0 borrados
  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: