join_dependency 0.1.3 → 0.1.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/join_dependency.rb +1 -1
- data/lib/join_dependency/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 76aabf6f41188e073747ff72770a0b8a693a553378dfe9330dcaac555ba9814d
|
4
|
+
data.tar.gz: e131b69a3e39bd1e748ffb9abd8bbfcc04a9328e4834199b3c411d713d63f471
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 15f519602307682c0827eafd2a067c1b4dd4bb820c50c9053542732c0c032a99131c7efe373f72747e0297d1f95a2ef2ea5844a7afe1c875f4fda1a53a485b93
|
7
|
+
data.tar.gz: 14433d268af626fc97da5b8c4f992b47b8e41b1ac504df3bddcde244ec2751fc48298e2ff68e3c988e53a56a812e392f27a087221a965cd7156bc783722e1462
|
data/lib/join_dependency.rb
CHANGED
@@ -38,7 +38,7 @@ module JoinDependency
|
|
38
38
|
string_joins = buckets[:string_join].map(&:strip).uniq
|
39
39
|
|
40
40
|
joins = string_joins.map do |join|
|
41
|
-
table.create_string_join(
|
41
|
+
relation.table.create_string_join(Arel.sql(join)) unless join.blank?
|
42
42
|
end.compact
|
43
43
|
|
44
44
|
join_list =
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: join_dependency
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ray Zane
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-09-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activerecord
|
@@ -119,7 +119,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
119
119
|
version: '0'
|
120
120
|
requirements: []
|
121
121
|
rubyforge_project:
|
122
|
-
rubygems_version: 2.7.
|
122
|
+
rubygems_version: 2.7.3
|
123
123
|
signing_key:
|
124
124
|
specification_version: 4
|
125
125
|
summary: Convert an ActiveRecord::Relation to a Join Dependency
|