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:
commit
24541792f3
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
```
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue