Skip to content

Commit 1dbbce6

Browse files
committed
fix broken document: false
zipmark#276
1 parent dc898c4 commit 1dbbce6

File tree

1 file changed

+1
-1
lines changed
  • lib/rspec_api_documentation

1 file changed

+1
-1
lines changed

lib/rspec_api_documentation/dsl.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ def resource(*args, &block)
2121
options = args.last.is_a?(Hash) ? args.pop : {}
2222
options[:api_doc_dsl] = :resource
2323
options[:resource_name] = args.first.to_s
24-
options[:document] ||= :all
24+
options[:document] = :all unless options.key?(:document)
2525
args.push(options)
2626
describe(*args, &block)
2727
end

0 commit comments

Comments
 (0)