Update command_line.md

Make it more clear that the Rails runner is run within the Rails application. Without the word `application` it's unclear what the Rails context is.
This commit is contained in:
Arn van der Pluijm 2024-01-10 16:49:57 +01:00 committed by GitHub
parent eac48e95db
commit da3648bc1d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -458,7 +458,7 @@ $ bin/rails dbconsole --database=animals
### `bin/rails runner` ### `bin/rails runner`
`runner` runs Ruby code in the context of Rails non-interactively. For instance: `runner` runs Ruby code from inside the context of the Rails application non-interactively, without having to open Rails `console`. For instance:
```bash ```bash
$ bin/rails runner "Model.long_running_method" $ bin/rails runner "Model.long_running_method"