forest_liana 1.7.5 → 1.7.6
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0df8e02deb4f4658a5ea5a25fc0f232ac70456de
|
4
|
+
data.tar.gz: 7572acc016113e289354bf72550bed7c53c8a2f6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 290e84138c3b8a4ca3aa3f6bd334df6f8fe4650d776b075546d095d741f678e565a17e8d395094d880705446d95d8bf78e609fbd3f15820c62e8573e8db21c74
|
7
|
+
data.tar.gz: 57f64110af477a4af2e35045d9e41b1a95ee10b9276e962d0e7ab161a13c49a0550ef3b583fedc69a47c220035ef1bd37834ab9da160fd02ad33f46127c48bc4
|
@@ -145,7 +145,13 @@ module ForestLiana
|
|
145
145
|
relationship_object = included.select do |record|
|
146
146
|
record['id'] == relationship_id && record['type'] == relationship_type
|
147
147
|
end
|
148
|
-
|
148
|
+
|
149
|
+
relationship_object = relationship_object.first
|
150
|
+
if relationship_object && relationship_object['attributes']
|
151
|
+
relationship_object['attributes'][params[:fields][field_name]]
|
152
|
+
else
|
153
|
+
nil
|
154
|
+
end
|
149
155
|
end
|
150
156
|
end
|
151
157
|
content << ::CSV::Row.new(field_names_requested, values).to_s
|
data/lib/forest_liana/version.rb
CHANGED