rails_admin_charts 0.0.6 → 0.0.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +3 -3
- data/lib/rails_admin_charts.rb +2 -2
- data/lib/rails_admin_charts/version.rb +1 -1
- metadata +4 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b28b8fbaf851df79c1604a3f40a24e4ffaf48d41
|
4
|
+
data.tar.gz: 255aa1901b9e512687cb6ffd64a52ea4fc6c6e14
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 95ac7d2558a29b62c0b266a88ddda3c63198886d9b9a426a7aab31bbac6f90b234c9a5da030ab6915ec52f4c62dc5800c9d29297172532ea6a7255703f2d858a
|
7
|
+
data.tar.gz: b724050ff76a749ef8d4ff49494dcf431c8f451232ced56849eab1e95485d254c6975b8a91673ad28c5a14ee50172d03e2cb8c04fcb48bb1db1bb1b7b905d6ee
|
data/README.md
CHANGED
@@ -36,16 +36,16 @@ The data displayed in the chart can be altered by overriding the class method `g
|
|
36
36
|
name: 'Admin Users',
|
37
37
|
pointInterval: point_interval = 1.day * 1000,
|
38
38
|
pointStart: start_point = since.to_i * 1000,
|
39
|
-
data: self.where(
|
39
|
+
data: self.where(type: 'Admin').delta_records_since(since)
|
40
40
|
},
|
41
41
|
{
|
42
42
|
name: 'Standard Users',
|
43
43
|
pointInterval: point_interval,
|
44
44
|
pointStart: start_point,
|
45
|
-
data: self.where(
|
45
|
+
data: self.where(type: nil).delta_records_since(since)
|
46
46
|
}
|
47
47
|
]
|
48
48
|
end
|
49
49
|
```
|
50
50
|
|
51
|
-
This project uses MIT-LICENSE.
|
51
|
+
This project uses MIT-LICENSE.
|
data/lib/rails_admin_charts.rb
CHANGED
@@ -20,7 +20,7 @@ module RailsAdminCharts
|
|
20
20
|
def graph_data since=30.days.ago
|
21
21
|
[
|
22
22
|
{
|
23
|
-
name: model_name.
|
23
|
+
name: model_name.plural,
|
24
24
|
pointInterval: 1.day * 1000,
|
25
25
|
pointStart: since.to_i * 1000,
|
26
26
|
data: self.total_records_since(since)
|
@@ -30,4 +30,4 @@ module RailsAdminCharts
|
|
30
30
|
end
|
31
31
|
end
|
32
32
|
|
33
|
-
require 'rails_admin_charts/rails_admin/config/actions/charts'
|
33
|
+
require 'rails_admin_charts/rails_admin/config/actions/charts'
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rails_admin_charts
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Paul Geraghty
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-
|
11
|
+
date: 2013-08-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -73,7 +73,8 @@ files:
|
|
73
73
|
- Rakefile
|
74
74
|
- README.md
|
75
75
|
homepage: https://github.com/pgeraghty/rails_admin_charts
|
76
|
-
licenses:
|
76
|
+
licenses:
|
77
|
+
- MIT
|
77
78
|
metadata: {}
|
78
79
|
post_install_message:
|
79
80
|
rdoc_options: []
|