mirror of
https://github.com/pry/pry-rails.git
synced 2022-11-09 12:36:03 -05:00
Disable when DISABLE_PRY_RAILS is given as env variable (fix #32)
This commit is contained in:
parent
4faef1e949
commit
277a0f91e4
2 changed files with 4 additions and 1 deletions
|
@ -70,6 +70,9 @@ Pokemon
|
|||
updated_at: datetime
|
||||
belongs_to hacker
|
||||
has_many beers through hacker
|
||||
|
||||
$ DISABLE_PRY_RAILS=1 rails console
|
||||
irb(main):001:0>
|
||||
```
|
||||
|
||||
# Developing and Testing
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
require 'pry'
|
||||
require 'pry-rails/version'
|
||||
|
||||
if defined?(Rails)
|
||||
if defined?(Rails) && !ENV['DISABLE_PRY_RAILS']
|
||||
require 'pry-rails/railtie'
|
||||
require 'pry-rails/commands'
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue