rails_admin_charts 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +8 -0
- data/config/initializers/rails_admin_charts.rb +1 -0
- data/lib/rails_admin_charts/version.rb +1 -1
- 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: 99b2ea505dec629e543cf69bea348e5b9f59ccbd
|
4
|
+
data.tar.gz: 4f5a18a6bd7d6c02ece330994a3ea6e54563729a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9518d7024400029b58a1989438ca44d2d7625901a75ac3a790d2d8abc7bd560f35ba935f98742d1c06b66da90a3aa3c3735c6b8c3f684bad2b77dc06264c40a6
|
7
|
+
data.tar.gz: aeb0a072750defd504b2d6f79e8565e68ca5258bed4040567a370118c19cf4d14cc219795be9d39df8073e08cd41b6d6a134a8d3f7adba4f8edbbdeba0805a04
|
data/README.md
CHANGED
@@ -12,6 +12,14 @@ Run:
|
|
12
12
|
|
13
13
|
This will include the lazy_high_charts gem and add the assets to the pipeline.
|
14
14
|
|
15
|
+
In your RailsAdmin initializer (`app/config/initializers/rails_admin.rb`), enable the action by adding:
|
16
|
+
|
17
|
+
```ruby
|
18
|
+
config.actions do
|
19
|
+
charts
|
20
|
+
end
|
21
|
+
```
|
22
|
+
|
15
23
|
For any model where you wish to display a chart (defaults to a cumulative total showing the last 100 days), add the following just under the class declaration:
|
16
24
|
|
17
25
|
```ruby
|