1
0
Fork 0
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:
Takatoshi Matsumoto 2012-12-21 19:15:04 -08:00 committed by Ryan Fitzgerald
parent 4faef1e949
commit 277a0f91e4
2 changed files with 4 additions and 1 deletions

View file

@ -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

View file

@ -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