Skip to content

Commit 0607e5d

Browse files
authored
Revert "Revert "Configure RDoc in Task#new""
1 parent 8231a4c commit 0607e5d

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)