query_report 1.0.11 → 1.0.12
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/query_report/column.rb +1 -1
- data/lib/query_report/version.rb +1 -1
- metadata +2 -2
data/lib/query_report/column.rb
CHANGED
@@ -77,7 +77,7 @@ module QueryReport
|
|
77
77
|
end
|
78
78
|
|
79
79
|
def total
|
80
|
-
@total ||= has_total? ? report.records.inject(0) {|sum, r| sum +
|
80
|
+
@total ||= has_total? ? report.records.inject(0) {|sum, r| sum + r[humanize].to_f } : nil
|
81
81
|
end
|
82
82
|
end
|
83
83
|
end
|
data/lib/query_report/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: query_report
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.12
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-10-
|
12
|
+
date: 2013-10-27 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rails
|