Skip to content

Commit 5fc6591

Browse files
authored
Merge pull request rails#54174 from Uaitt/suggest-to-use-rails-runner-instead-of-ruby
Suggest to use `bin/rails runner` in commands help [ci skip]
2 parents 86312f5 + 572e86e commit 5fc6591

File tree

2 files changed

+2
-2
lines changed
  • railties/lib/rails/generators/rails

2 files changed

+2
-2
lines changed

railties/lib/rails/generators/rails/benchmark/USAGE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ Example:
1313
script/benchmarks/opt_compare.rb
1414

1515
You can run the generated benchmark file using:
16-
`ruby script/benchmarks/opt_compare.rb`
16+
`bin/rails runner script/benchmarks/opt_compare.rb`
1717

1818
You can specify different reports:
1919
`bin/rails generate benchmark opt_compare patch1 patch2 patch3`

railties/lib/rails/generators/rails/script/USAGE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Example:
99
script/my_script.rb
1010

1111
You can run the script using:
12-
`ruby script/my_script.rb`
12+
`bin/rails runner script/my_script.rb`
1313

1414
You can specify a folder:
1515
`bin/rails generate script cleanup/my_script`

0 commit comments

Comments
 (0)