Skip to content

Commit 351a8d9

Browse files
authored
Merge pull request rails#50882 from sato11/rdoc-main-page
Prevent rdoc task from excluding the main page
2 parents 91f4fdc + 51e9074 commit 351a8d9

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

railties/lib/rails/api/task.rb

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -146,8 +146,6 @@ def configure_sdoc
146146
end
147147

148148
def configure_rdoc_files
149-
rdoc_files.include(api_main)
150-
151149
RDOC_FILES.each do |component, cfg|
152150
cdr = component_root_dir(component)
153151

@@ -172,6 +170,9 @@ def configure_rdoc_files
172170
# Nothing to do
173171
exit(0) if rdoc_files.empty?
174172
end
173+
174+
# This must come after the mtime comparison to ensure the main page is not excluded.
175+
rdoc_files.include(api_main)
175176
end
176177

177178
# These variables are used by the sdoc template

0 commit comments

Comments
 (0)