Skip to content

Commit e184d33

Browse files
authored
Merge pull request rails#47349 from rails/revert-47348-revert-47263-revert-47261-rdoc-configure
Revert "Revert "Revert "Configure RDoc in Task#new"""
2 parents 0e25d8e + d40d495 commit e184d33

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

railties/lib/rails/api/task.rb

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -105,17 +105,16 @@ class Task < RDoc::Task
105105
}
106106

107107
def initialize(name)
108+
super
109+
108110
# Every time rake runs this task is instantiated as all the rest.
109111
# Be lazy computing stuff to have as light impact as possible to
110112
# the rest of tasks.
111113
before_running_rdoc do
114+
configure_sdoc
112115
configure_rdoc_files
113116
setup_horo_variables
114117
end
115-
116-
super do
117-
configure_sdoc
118-
end
119118
end
120119

121120
# Hack, ignore the desc calls performed by the original initializer.

0 commit comments

Comments
 (0)