Skip to content

Commit

Permalink
Read all folders indide documentation folder
Browse files Browse the repository at this point in the history
  • Loading branch information
Guilherme Pereira committed Dec 4, 2014
1 parent a8b8bd3 commit 3b4ba7b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/api_docs/web.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class Web < Sinatra::Base
helpers do
def controllers
@controllers ||= begin
Dir.glob(ApiDocs.config.docs_path.join('*.yml')).sort.inject({}) do |memo, file_path|
Dir.glob(ApiDocs.config.docs_path.join('**/*.yml')).sort.inject({}) do |memo, file_path|
memo[File.basename(file_path, '.yml')] = Content.new(file_path)
memo
end
Expand Down

0 comments on commit 3b4ba7b

Please sign in to comment.