aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/test
diff options
context:
space:
mode:
authorErsin Akinci <ersin.akinci@gmail.com>2015-07-24 16:51:10 -0700
committerRafael Mendonça França <rafaelmfranca@gmail.com>2015-08-06 17:34:29 -0300
commit38f28f77049e7160491b71167471a2175253b742 (patch)
treee3d5caa379e9ce92a5719e315da9babcc85e0c77 /activesupport/test
parentce1bd47698d63119d8a922620d1ae1c30c9ba2db (diff)
downloadrails-38f28f77049e7160491b71167471a2175253b742.tar.gz
rails-38f28f77049e7160491b71167471a2175253b742.tar.bz2
rails-38f28f77049e7160491b71167471a2175253b742.zip
Only load statistics.rake once from inside engine
When running rake stats from inside an engine, the engine's Rakefile attempts to reload statistics.rake after the test app loads it, which results in STATS_DIRECTORIES being redefined and an annoying warning. This patch skips loading statistics.rake from tasks.rb if rake's current scope isn't empty, i.e. if we are running from inside an engine and not the test app dir or a normal app. Fixes #20510.
Diffstat (limited to 'activesupport/test')
0 files changed, 0 insertions, 0 deletions