five-two-nw-olivander 0.1.2.54 → 0.1.2.55
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
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3530a74b6c8673923e9747c1a96095c4257cc0fe4548915a0268bdcbe2b3eefb
|
4
|
+
data.tar.gz: d90e65ea9ffc37e9270715673d26aae6e14c99bdb95aa0d960c65bd464b4538c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d1316353cfb569f9fd7f2975b0bd96444a823625cdce839822a94df85670b23f9c1ae2fb0504a848fa4dde81469c177831e08b468b21658297c4be4d5d03904b
|
7
|
+
data.tar.gz: eb61a8b7da698576edfaf71e6b5c4e3223ab2126459df5e83c10829a22a3f2fb467d936311d8a3d0ffa48f22f508d56ea75d13be9e6728138c6c24d835542c38
|
@@ -9,8 +9,20 @@ export default class extends Controller {
|
|
9
9
|
var jsonCharts = dt.json.charts
|
10
10
|
for (var chart in jsonCharts) {
|
11
11
|
var chartkickChart = Chartkick.charts[chart]
|
12
|
+
chartkickChart.updateData(self.transformData(jsonCharts[chart]))
|
12
13
|
chartkickChart.redraw()
|
13
14
|
}
|
14
15
|
});
|
15
16
|
}
|
17
|
+
|
18
|
+
transformData(chart) {
|
19
|
+
var self = this
|
20
|
+
console.log("let's transform some data")
|
21
|
+
if (chart.as == 'LineChart') {
|
22
|
+
// we don't know what to do
|
23
|
+
return chart.data
|
24
|
+
} else {
|
25
|
+
return chart.data
|
26
|
+
}
|
27
|
+
}
|
16
28
|
}
|
@@ -62,8 +62,6 @@ module Olivander
|
|
62
62
|
|
63
63
|
datatable do
|
64
64
|
order(order_by[0], order_by[1]) if order_by.size == 2
|
65
|
-
Rails.logger.debug "bulk actions size: #{datatable._bulk_actions.size}"
|
66
|
-
Rails.logger.debug "bulk actions size: #{datatable._bulk_actions.size.positive?}"
|
67
65
|
# bulk_actions_col if datatable._bulk_actions.size.positive?
|
68
66
|
|
69
67
|
#TODO: use columns from model here instead of attributes keys
|
@@ -3,8 +3,7 @@ module Olivander
|
|
3
3
|
self.abstract_class = true
|
4
4
|
|
5
5
|
def self.audited_as klazz
|
6
|
-
Rails.logger.debug "#{self.class.name} is audited as #{klazz.name}"
|
7
|
-
|
6
|
+
# Rails.logger.debug "#{self.class.name} is audited as #{klazz.name}"
|
8
7
|
@@audited_user_class = klazz
|
9
8
|
|
10
9
|
belongs_to :created_by, class_name: klazz.name
|
data/lib/olivander/version.rb
CHANGED