1
0
Fork 0
mirror of https://github.com/pry/pry-rails.git synced 2022-11-09 12:36:03 -05:00

Merge pull request #123 from rweng/document-feature-to-disable-pry-rails

Document feature to disable pry-rails
This commit is contained in:
Dave Powers 2021-09-13 23:52:14 -04:00 committed by GitHub
commit 12a517e974
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -74,9 +74,6 @@ Pokemon
updated_at: datetime updated_at: datetime
belongs_to hacker belongs_to hacker
has_many beers through hacker has_many beers through hacker
$ DISABLE_PRY_RAILS=1 rails console
irb(main):001:0>
``` ```
## Custom Rails prompt ## Custom Rails prompt
@ -100,6 +97,15 @@ end
Check out `change-prompt --help` for information about temporarily Check out `change-prompt --help` for information about temporarily
changing the prompt for the current Pry session. changing the prompt for the current Pry session.
## Disabling pry-rails
If pry-rails is included in your application but you would prefer not to use it, you may run the following command to set the appropriate environment variable to disable initialization and fall back to the default IRB console:
```shell
DISABLE_PRY_RAILS=1 rails console
```
Note that you may need to run `spring stop` first.
# Developing and Testing # Developing and Testing
This repo uses [Roadshow] to generate a [Docker Compose] file for each This repo uses [Roadshow] to generate a [Docker Compose] file for each