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 #119 from CHTJonas/patch-1

Update prompt syntax for Pry v0.13.0
This commit is contained in:
John Mair 2020-08-05 12:15:47 +02:00 committed by GitHub
commit 24541792f3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -82,7 +82,7 @@ If you want to permanently include the current Rails environment and project nam
in the Pry prompt, put the following lines in your project's `.pryrc`:
```ruby
Pry.config.prompt = Pry::Prompt[:rails][:value]
Pry.config.prompt = Pry::Prompt[:rails]
```
If `.pryrc` could be loaded without pry-rails being available or installed,
@ -90,7 +90,7 @@ guard against setting `Pry.config.prompt` to `nil`:
```ruby
if Pry::Prompt[:rails]
Pry.config.prompt = Pry::Prompt[:rails][:value]
Pry.config.prompt = Pry::Prompt[:rails]
end
```