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:
commit
12a517e974
1 changed files with 9 additions and 3 deletions
12
Readme.md
12
Readme.md
|
@ -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
|
||||||
|
|
Loading…
Add table
Reference in a new issue