query_report 1.0.19 → 1.0.20
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/query_report/record.rb +1 -1
- data/lib/query_report/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 72ecea2b5888973d9466d275b82d9b430aede2a0
|
4
|
+
data.tar.gz: ece6ae1a06070abfd8e135db96d084b451014fd8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a7ab2b78338519ab00943689c92bd17573dd63658eff709c07e5cfef6abd1c8a4e39c284037a24e2de15b57850749d531fd2e574ab3e16a9f0792ff7bd5c2625
|
7
|
+
data.tar.gz: b03d1fd45a9f515c74e4f860469f77e869166346226d36dddd6c7df0a0040d858d3ad491125908ae6f1ed75c930113db1a00e91ba5f269a5fe91a944263504a4
|
data/lib/query_report/record.rb
CHANGED
@@ -38,7 +38,7 @@ module QueryReport
|
|
38
38
|
@columns = @columns.delete_if { |col| col.only_on_web? } unless render_from_view
|
39
39
|
|
40
40
|
query.map do |record|
|
41
|
-
array = @columns.collect { |column| [column.humanize, column.value(record)] }
|
41
|
+
array = @columns.collect { |column| [column.humanize, render_from_view ? column.value(record) : strip_tags(column.value(record))] }
|
42
42
|
Hash[*array.flatten]
|
43
43
|
end
|
44
44
|
end
|
data/lib/query_report/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
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.20
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- A.K.M. Ashrafuzzaman
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-02
|
11
|
+
date: 2014-03-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|