mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
38f28f7704
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. |
||
---|---|---|
.. | ||
rails | ||
rails.rb |