rails_api_documentation 0.1.1 → 0.1.2
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: 1a49207950a93e5b5cd746c1e0c8b315dc7d6c94
|
4
|
+
data.tar.gz: e12f0dce8f906738103348b3b5b35c2ea433c8f8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 28f06b3a3c6385f159ac95d4dcc49a5ba6eac1792a843d5801b8d8150c47c569ddb9e347c24c692f9c5a0b15d1e11819dedfb58016f49671feb005acce3931ff
|
7
|
+
data.tar.gz: 09ff6a7d0872042cc51ac2124b0af0c32fa18bc4132f6ab248d48006231263f49dbf23aab0ad9006b87dfe3584cf70a37c5b81bd1d4334b49762ebde7dd7950f
|
@@ -117,7 +117,7 @@ class RailsApiDoc::Controller::Response
|
|
117
117
|
def child(name_or_data, options = {})
|
118
118
|
data, name = extract_data_and_name(name_or_data)
|
119
119
|
|
120
|
-
if options.empty? && new_options = name_or_data.to_a.second
|
120
|
+
if options.empty? && name_or_data.is_a?(Hash) && new_options = name_or_data.to_a.second
|
121
121
|
options = [new_options].to_h
|
122
122
|
end
|
123
123
|
|