We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 36a0c41 + fb3511e commit 3ad1ab7Copy full SHA for 3ad1ab7
lib/rspec_api_documentation/dsl.rb
@@ -21,7 +21,7 @@ def resource(*args, &block)
21
options = args.last.is_a?(Hash) ? args.pop : {}
22
options[:api_doc_dsl] = :resource
23
options[:resource_name] = args.first.to_s
24
- options[:document] ||= :all
+ options[:document] = :all unless options.key?(:document)
25
args.push(options)
26
describe(*args, &block)
27
end
0 commit comments