Skip to content

Commit

Permalink
Merge pull request #123 from rweng/document-feature-to-disable-pry-rails
Browse files Browse the repository at this point in the history
Document feature to disable pry-rails
  • Loading branch information
djpowers authored Sep 14, 2021
2 parents 866c7f7 + ba57e97 commit 12a517e
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,6 @@ Pokemon
updated_at: datetime
belongs_to hacker
has_many beers through hacker
$ DISABLE_PRY_RAILS=1 rails console
irb(main):001:0>
```

## Custom Rails prompt
Expand All @@ -100,6 +97,15 @@ end
Check out `change-prompt --help` for information about temporarily
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

This repo uses [Roadshow] to generate a [Docker Compose] file for each
Expand Down

0 comments on commit 12a517e

Please sign in to comment.