aboutsummaryrefslogtreecommitdiffstats
path: root/railties
diff options
context:
space:
mode:
authorXavier Noria <fxn@hashref.com>2013-03-30 11:24:51 +0100
committerXavier Noria <fxn@hashref.com>2013-03-30 11:34:35 +0100
commit2645f6844f7ae3eed0e03a786490e5e432d87d52 (patch)
tree3aa3e193aac7205a5eba8d2f56f3db49f7bac128 /railties
parentf01b7570c5b2ec16083aaaa8b7e53441c74bfbb8 (diff)
downloadrails-2645f6844f7ae3eed0e03a786490e5e432d87d52.tar.gz
rails-2645f6844f7ae3eed0e03a786490e5e432d87d52.tar.bz2
rails-2645f6844f7ae3eed0e03a786490e5e432d87d52.zip
be lazy configuring the RDoc files
This code is executed every time you run a rake task, there is no need to, specially adding a penalty to test suites.
Diffstat (limited to 'railties')
-rw-r--r--railties/lib/rails/api/task.rb3
1 files changed, 1 insertions, 2 deletions
diff --git a/railties/lib/rails/api/task.rb b/railties/lib/rails/api/task.rb
index 81d6dea792..4f183c80c8 100644
--- a/railties/lib/rails/api/task.rb
+++ b/railties/lib/rails/api/task.rb
@@ -70,9 +70,8 @@ module Rails
options << '-m' << api_main
options << '-e' << 'UTF-8'
- configure_rdoc_files
-
before_running_rdoc do
+ configure_rdoc_files
load_and_configure_sdoc
setup_horo_variables
end