swiss_db 0.3.4 → 0.3.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +13 -0
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 228f98074080fe642d5084b1d2d8fa57f7c0cac1
|
|
4
|
+
data.tar.gz: a3b15c838f4fa339ef3731030f14ad75156d7e0d
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: f9ebb0efbba13f466f878672ab12ae7dd0eaa2a2bd2bd8ded5d932c56ea6ae7be305d60cea357a826d3da0151eee7c5c70ecf0bf5bafe862762446013aa49976
|
|
7
|
+
data.tar.gz: 0274815ee4f7ec80e9d60825f1d1f2bd7a0de02545ed13dcf572a0d7a1fed1449cc4cbc06def78d82159fcb1c4dfd8174d787c030336bc3ff59b016e7a117adf
|
data/README.md
CHANGED
|
@@ -39,6 +39,19 @@ class Model < SwissModel
|
|
|
39
39
|
end
|
|
40
40
|
```
|
|
41
41
|
|
|
42
|
+
Don't forget to set $app_context in your bluepotion_application.rb. Don't panic. This won't be a global in the next release.
|
|
43
|
+
|
|
44
|
+
```ruby
|
|
45
|
+
class BluePotionApplication < PMApplication
|
|
46
|
+
|
|
47
|
+
home_screen HomeScreen
|
|
48
|
+
|
|
49
|
+
def on_create
|
|
50
|
+
$app_context = self
|
|
51
|
+
end
|
|
52
|
+
end
|
|
53
|
+
```
|
|
54
|
+
|
|
42
55
|
That's it! #all, #last, #first, #count, #save, #update_attributes and the usual are now available!
|
|
43
56
|
|
|
44
57
|
## Development
|