Skip to content

Commit 0e25d8e

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

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

railties/lib/rails/api/task.rb

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

107107
def initialize(name)
108-
super
109-
110108
# Every time rake runs this task is instantiated as all the rest.
111109
# Be lazy computing stuff to have as light impact as possible to
112110
# the rest of tasks.
113111
before_running_rdoc do
114-
configure_sdoc
115112
configure_rdoc_files
116113
setup_horo_variables
117114
end
115+
116+
super do
117+
configure_sdoc
118+
end
118119
end
119120

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

0 commit comments

Comments
 (0)