smql 0.0.5 → 0.0.5.1
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.
- data/VERSION +1 -1
- data/lib/smql_to_ar/query_builder.rb +1 -1
- metadata +3 -2
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.0.5
|
|
1
|
+
0.0.5.1
|
|
@@ -148,7 +148,7 @@ class SmqlToAR
|
|
|
148
148
|
when :belongs_to
|
|
149
149
|
@_joins += build_join query, pretable, t, refl.primary_key_name, premodel.primary_key
|
|
150
150
|
when :has_and_belongs_to_many
|
|
151
|
-
jointable = [','] + table
|
|
151
|
+
jointable = [Column::Col.new(',')] + table
|
|
152
152
|
@_joins += build_join refl.options[:join_table], pretable, @table_alias[jointable], premodel.primary_key, refl.primary_key_name
|
|
153
153
|
@_joins += build_join query, jointable, t, refl.association_foreign_key, refl.association_primary_key
|
|
154
154
|
else raise BuilderError, "Unkown reflection macro: #{refl.macro.inspect}"
|
metadata
CHANGED
|
@@ -6,7 +6,8 @@ version: !ruby/object:Gem::Version
|
|
|
6
6
|
- 0
|
|
7
7
|
- 0
|
|
8
8
|
- 5
|
|
9
|
-
|
|
9
|
+
- 1
|
|
10
|
+
version: 0.0.5.1
|
|
10
11
|
platform: ruby
|
|
11
12
|
authors:
|
|
12
13
|
- Denis Knauf
|
|
@@ -14,7 +15,7 @@ autorequire:
|
|
|
14
15
|
bindir: bin
|
|
15
16
|
cert_chain: []
|
|
16
17
|
|
|
17
|
-
date: 2012-01-
|
|
18
|
+
date: 2012-01-16 00:00:00 +01:00
|
|
18
19
|
default_executable:
|
|
19
20
|
dependencies:
|
|
20
21
|
- !ruby/object:Gem::Dependency
|