mirror of https://github.com/rails/rails
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:
parent
eac48e95db
commit
da3648bc1d
|
@ -458,7 +458,7 @@ $ bin/rails dbconsole --database=animals
|
|||
|
||||
### `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
|
||||
$ bin/rails runner "Model.long_running_method"
|
||||
|
|
Loading…
Reference in New Issue