Skip to content

Commit 59189d4

Browse files
Merge pull request rails#47794 from p8/railties/bin-rails-rake-commands
Use `bin/rails` for Rake commands help
2 parents 920b930 + fa1abad commit 59189d4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

railties/lib/rails/commands/rake/rake_command.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ def perform(task, args, config)
1616
require_rake
1717

1818
Rake.with_application do |rake|
19-
rake.init("rails", [task, *args])
19+
rake.init("bin/rails", [task, *args])
2020
rake.load_rakefile
2121
if unrecognized_task = rake.top_level_tasks.find { |task| !rake.lookup(task[/[^\[]+/]) }
2222
raise UnrecognizedCommandError.new(unrecognized_task)

0 commit comments

Comments
 (0)