data_table 0.4.12 → 0.4.13
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/Gemfile.lock +58 -59
- data/lib/data_table/active_record.rb +5 -1
- data/lib/data_table/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
NzYwYjNkY2QzMWQ0YmE2YjE5Mzk2M2U1NjUxMzk1ZjkzYTU5NTRmNQ==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
NGY5MTEyNzQwYTBhMDQwZGI0OTRlYzljNWJlZDJkMTllNmQyNzlkMA==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
MGNmOTgyNWFkYjJkYzRkMGRhZmUwNTI5YzA3ZmE2NzkyNmM0MTNjMDdhNWFj
|
10
|
+
OGFlN2VkMzhhZjMyNjNlZTRkMDRmMDY0NjY4YjUyZjYzZDA4OTYxOGM4NDNi
|
11
|
+
YzNjZTFhNWZlZDY2YmUzODRlZmNkNTM1ZmU5NDA2ZjQ4MDY5YTM=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
OGU0OGU2NWQyNTIzYzM1NjRiNjZiZjVmNDFhZDIzNWY4NGZmYTk1MWVmZTUz
|
14
|
+
YmMyNGQ3NjA5MDY5MDcwODEyYTEyYTA3MDJlZDk3ZWU0NzRiNmYzMDM2OTA0
|
15
|
+
NDU2MDFlMjcyZWFmMjZhZmViNGQzYjhhZjMwOWNjYjNjZmY4ZjQ=
|
data/Gemfile.lock
CHANGED
@@ -1,78 +1,71 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
data_table (0.4.
|
4
|
+
data_table (0.4.13)
|
5
5
|
rails (>= 3.0)
|
6
6
|
|
7
7
|
GEM
|
8
8
|
remote: http://rubygems.org/
|
9
9
|
specs:
|
10
|
-
actionmailer (
|
11
|
-
actionpack (=
|
10
|
+
actionmailer (4.1.0)
|
11
|
+
actionpack (= 4.1.0)
|
12
|
+
actionview (= 4.1.0)
|
12
13
|
mail (~> 2.5.4)
|
13
|
-
actionpack (
|
14
|
-
|
15
|
-
activesupport (=
|
16
|
-
|
14
|
+
actionpack (4.1.0)
|
15
|
+
actionview (= 4.1.0)
|
16
|
+
activesupport (= 4.1.0)
|
17
|
+
rack (~> 1.5.2)
|
18
|
+
rack-test (~> 0.6.2)
|
19
|
+
actionview (4.1.0)
|
20
|
+
activesupport (= 4.1.0)
|
21
|
+
builder (~> 3.1)
|
17
22
|
erubis (~> 2.7.0)
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
tzinfo (~>
|
31
|
-
|
32
|
-
|
33
|
-
activesupport (= 3.2.14)
|
34
|
-
activesupport (3.2.14)
|
35
|
-
i18n (~> 0.6, >= 0.6.4)
|
36
|
-
multi_json (~> 1.0)
|
37
|
-
arel (3.0.2)
|
38
|
-
builder (3.0.4)
|
23
|
+
activemodel (4.1.0)
|
24
|
+
activesupport (= 4.1.0)
|
25
|
+
builder (~> 3.1)
|
26
|
+
activerecord (4.1.0)
|
27
|
+
activemodel (= 4.1.0)
|
28
|
+
activesupport (= 4.1.0)
|
29
|
+
arel (~> 5.0.0)
|
30
|
+
activesupport (4.1.0)
|
31
|
+
i18n (~> 0.6, >= 0.6.9)
|
32
|
+
json (~> 1.7, >= 1.7.7)
|
33
|
+
minitest (~> 5.1)
|
34
|
+
thread_safe (~> 0.1)
|
35
|
+
tzinfo (~> 1.1)
|
36
|
+
arel (5.0.0)
|
37
|
+
builder (3.2.2)
|
39
38
|
diff-lcs (1.2.4)
|
40
39
|
erubis (2.7.0)
|
41
40
|
hike (1.2.3)
|
42
|
-
i18n (0.6.
|
43
|
-
|
44
|
-
json (1.8.0)
|
41
|
+
i18n (0.6.9)
|
42
|
+
json (1.8.1)
|
45
43
|
mail (2.5.4)
|
46
44
|
mime-types (~> 1.16)
|
47
45
|
treetop (~> 1.4.8)
|
48
|
-
mime-types (1.25)
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
rack
|
53
|
-
rack (>= 0.4)
|
54
|
-
rack-ssl (1.3.3)
|
55
|
-
rack
|
46
|
+
mime-types (1.25.1)
|
47
|
+
minitest (5.3.2)
|
48
|
+
multi_json (1.9.2)
|
49
|
+
polyglot (0.3.4)
|
50
|
+
rack (1.5.2)
|
56
51
|
rack-test (0.6.2)
|
57
52
|
rack (>= 1.0)
|
58
|
-
rails (
|
59
|
-
actionmailer (=
|
60
|
-
actionpack (=
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
53
|
+
rails (4.1.0)
|
54
|
+
actionmailer (= 4.1.0)
|
55
|
+
actionpack (= 4.1.0)
|
56
|
+
actionview (= 4.1.0)
|
57
|
+
activemodel (= 4.1.0)
|
58
|
+
activerecord (= 4.1.0)
|
59
|
+
activesupport (= 4.1.0)
|
60
|
+
bundler (>= 1.3.0, < 2.0)
|
61
|
+
railties (= 4.1.0)
|
62
|
+
sprockets-rails (~> 2.0)
|
63
|
+
railties (4.1.0)
|
64
|
+
actionpack (= 4.1.0)
|
65
|
+
activesupport (= 4.1.0)
|
70
66
|
rake (>= 0.8.7)
|
71
|
-
|
72
|
-
|
73
|
-
rake (10.1.0)
|
74
|
-
rdoc (3.12.2)
|
75
|
-
json (~> 1.4)
|
67
|
+
thor (>= 0.18.1, < 2.0)
|
68
|
+
rake (10.2.2)
|
76
69
|
rr (1.1.2)
|
77
70
|
rspec (2.14.1)
|
78
71
|
rspec-core (~> 2.14.0)
|
@@ -83,17 +76,23 @@ GEM
|
|
83
76
|
diff-lcs (>= 1.1.3, < 2.0)
|
84
77
|
rspec-mocks (2.14.3)
|
85
78
|
shoulda (2.11.3)
|
86
|
-
sprockets (2.
|
79
|
+
sprockets (2.12.0)
|
87
80
|
hike (~> 1.2)
|
88
81
|
multi_json (~> 1.0)
|
89
82
|
rack (~> 1.0)
|
90
83
|
tilt (~> 1.1, != 1.3.0)
|
91
|
-
|
84
|
+
sprockets-rails (2.1.1)
|
85
|
+
actionpack (>= 3.0)
|
86
|
+
activesupport (>= 3.0)
|
87
|
+
sprockets (~> 2.8)
|
88
|
+
thor (0.19.1)
|
89
|
+
thread_safe (0.3.3)
|
92
90
|
tilt (1.4.1)
|
93
91
|
treetop (1.4.15)
|
94
92
|
polyglot
|
95
93
|
polyglot (>= 0.3.1)
|
96
|
-
tzinfo (
|
94
|
+
tzinfo (1.1.0)
|
95
|
+
thread_safe (~> 0.1)
|
97
96
|
|
98
97
|
PLATFORMS
|
99
98
|
ruby
|
@@ -4,7 +4,11 @@ module DataTable
|
|
4
4
|
|
5
5
|
def _find_objects params, fields, search_fields
|
6
6
|
self.where(_where_conditions params[:ssearch], search_fields).
|
7
|
-
includes(_discover_joins fields).
|
7
|
+
includes(_discover_joins fields).tap do |query|
|
8
|
+
if query.respond_to?(:references!)
|
9
|
+
query.references!(_discover_joins fields)
|
10
|
+
end
|
11
|
+
end.
|
8
12
|
order(_order_fields params, fields).
|
9
13
|
paginate :page => _page(params), :per_page => _per_page(params)
|
10
14
|
end
|
data/lib/data_table/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: data_table
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.13
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jason Dew
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-04-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|