forest_liana 1.5.21 → 1.5.22
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/services/forest_liana/schema_adapter.rb +5 -4
- data/lib/forest_liana/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: 66115c380e28a1968e472cb604a4cc6e2cfa6336
|
4
|
+
data.tar.gz: 89487bf26d2e6c4bd59f01315307a452cbcdae46
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d13e6768b5ee702c5b8f0be5f6f9c5c1ebacd02759b1453611800506bbfa5e739612330bdc39dcffd65a8f144657b0ae9b617ef6d4056587e9f27bc86f25f117
|
7
|
+
data.tar.gz: 08d88a90f1cfdd1647fc33d75df18f8df5b642991fbb0993cf22f98f1ccb32488e908ccc5ee360edb0ec12d52d1a9d8050a786ae88c329819264459adfc91833
|
@@ -186,10 +186,11 @@ module ForestLiana
|
|
186
186
|
|
187
187
|
collection.fields.delete(field) if field
|
188
188
|
# NOTICE: The foreign key exists, so it's a belongsTo relationship.
|
189
|
-
elsif field = column_association(collection, association)
|
190
|
-
|
191
|
-
|
192
|
-
|
189
|
+
elsif (field = column_association(collection, association)) &&
|
190
|
+
[:has_one, :belongs_to].include?(association.macro)
|
191
|
+
field[:reference] = get_ref_for(association)
|
192
|
+
field[:field] = association.name
|
193
|
+
field[:inverseOf] = inverse_of(association)
|
193
194
|
# NOTICE: Create the fields of hasOne, HasMany, … relationships.
|
194
195
|
else
|
195
196
|
collection.fields << get_schema_for_association(association)
|
data/lib/forest_liana/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: forest_liana
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.5.
|
4
|
+
version: 1.5.22
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sandro Munda
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-04-
|
11
|
+
date: 2017-04-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|