Skip to content

Commit

Permalink
Revert "Configure RDoc in Task#new"
Browse files Browse the repository at this point in the history
  • Loading branch information
zzak committed Feb 6, 2023
1 parent d7a1ace commit f124683
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions railties/lib/rails/api/task.rb
Expand Up @@ -105,17 +105,16 @@ class Task < RDoc::Task
}

def initialize(name)
super

# Every time rake runs this task is instantiated as all the rest.
# Be lazy computing stuff to have as light impact as possible to
# the rest of tasks.
before_running_rdoc do
configure_sdoc
configure_rdoc_files
setup_horo_variables
end

super do
configure_sdoc
end
end

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

0 comments on commit f124683

Please sign in to comment.