From d622b7d8d5597f2983235109d879fa6987143a47 Mon Sep 17 00:00:00 2001 From: Dave Powers Date: Tue, 7 Sep 2021 12:38:19 -0400 Subject: [PATCH 1/3] Move disable example to separate subheading The example of disabling pry-rails seemed to be missed by most, so this moves it to its own section, and explicitly highlights the ability to opt out of using the gem's features when entering the Rails console. --- Readme.md | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/Readme.md b/Readme.md index 305be3b..77d61a0 100644 --- a/Readme.md +++ b/Readme.md @@ -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 @@ -100,6 +97,12 @@ end Check out `change-prompt --help` for information about temporarily changing the prompt for the current Pry session. +## Disable 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 +``` + # Developing and Testing This repo uses [Roadshow] to generate a [Docker Compose] file for each From c5c2c1eebe08b16d371def58460c43eb8c4b8934 Mon Sep 17 00:00:00 2001 From: Dave Powers Date: Sat, 11 Sep 2021 20:00:34 -0400 Subject: [PATCH 2/3] Add suggestion to stop spring --- Readme.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Readme.md b/Readme.md index 77d61a0..9a53a6a 100644 --- a/Readme.md +++ b/Readme.md @@ -98,11 +98,14 @@ Check out `change-prompt --help` for information about temporarily changing the prompt for the current Pry session. ## Disable 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 From ba57e97c617a82250f396a2eedc5ae6e52af58e5 Mon Sep 17 00:00:00 2001 From: Dave Powers Date: Sat, 11 Sep 2021 20:30:31 -0400 Subject: [PATCH 3/3] Update subheading for consistency --- Readme.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Readme.md b/Readme.md index 9a53a6a..ce1b609 100644 --- a/Readme.md +++ b/Readme.md @@ -97,7 +97,7 @@ end Check out `change-prompt --help` for information about temporarily changing the prompt for the current Pry session. -## Disable pry-rails +## 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