File tree Expand file tree Collapse file tree 2 files changed +6
-7
lines changed Expand file tree Collapse file tree 2 files changed +6
-7
lines changed Original file line number Diff line number Diff line change @@ -15,12 +15,11 @@ def printing_commands
15
15
def perform ( task , args , config )
16
16
require_rake
17
17
18
- ARGV . replace ( [ task , *args ] ) # set up ARGV for Rake
19
-
20
- Rake . application . standard_exception_handling do
21
- Rake . application . init ( "rails" )
22
- Rake . application . load_rakefile
23
- Rake . application . top_level
18
+ Rake . with_application do |rake |
19
+ load "rails/tasks.rb"
20
+ rake . init ( "rails" , [ task , *args ] )
21
+ rake . load_rakefile
22
+ rake . standard_exception_handling { rake . top_level }
24
23
end
25
24
end
26
25
Original file line number Diff line number Diff line change 3
3
# While global constants are bad, many 3rd party tools depend on this one (e.g
4
4
# rspec-rails & cucumber-rails). So a deprecation warning is needed if we want
5
5
# to remove it.
6
- STATS_DIRECTORIES = [
6
+ STATS_DIRECTORIES || = [
7
7
%w( Controllers app/controllers ) ,
8
8
%w( Helpers app/helpers ) ,
9
9
%w( Jobs app/jobs ) ,
You can’t perform that action at this time.
0 commit comments