nested 0.0.6 → 0.0.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/nested.rb +1 -1
- data/nested.gemspec +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1da30913da1721509e3310efdcf6fb168f66cba2
|
4
|
+
data.tar.gz: b0651cc3cee6b4f23c1477d9a9e5cb41cca3c0f1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3c5fa1babd027eca810e0cf89c2da126bb88fc9ace44082040e6baf121dd212b063cab71eae249aeaeb33d1cf9a7548d26974616b0551228fce0e4a3be8039d0
|
7
|
+
data.tar.gz: ba7ed143ec326111981a03c361bd80b531a6de237f3ac660045f694cbf18bab9dd159a045db1f8e55725717d36ba445803d76669280f6e586a23ad88a0e6ac52
|
data/lib/nested.rb
CHANGED
@@ -228,7 +228,7 @@ module Nested
|
|
228
228
|
end
|
229
229
|
|
230
230
|
def sinatra_response_create_data(sinatra, response)
|
231
|
-
data = if response
|
231
|
+
data = if response && collection?
|
232
232
|
response.to_a.map{|e| serializer.call(e, sinatra, self)}
|
233
233
|
else
|
234
234
|
serializer.call(response, sinatra, self)
|
data/nested.gemspec
CHANGED